2017-08-31 00:06:56 -04:00
|
|
|
class CreateCustomEmojis < ActiveRecord::Migration[4.2]
|
2017-02-02 04:41:57 -05:00
|
|
|
def change
|
|
|
|
create_table :custom_emojis do |t|
|
|
|
|
t.string :name, null: false
|
|
|
|
t.integer :upload_id, null: false
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :custom_emojis, :name, unique: true
|
|
|
|
end
|
|
|
|
end
|