Gab Social. All are welcome.
This commit is contained in:
13
db/migrate/20170917153509_create_custom_emojis.rb
Normal file
13
db/migrate/20170917153509_create_custom_emojis.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateCustomEmojis < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :custom_emojis do |t|
|
||||
t.string :shortcode, null: false, default: ''
|
||||
t.string :domain
|
||||
t.attachment :image
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :custom_emojis, [:shortcode, :domain], unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user