You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
345 B
15 lines
345 B
# frozen_string_literal: true |
|
|
|
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
|
|
|