mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
14 lines
314 B
Ruby
14 lines
314 B
Ruby
|
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
|