gab-social/db/migrate/20170917153509_create_custo...

14 lines
314 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
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