1
0
mirror of https://github.com/discourse/discourse.git synced 2025-03-07 03:39:34 +00:00
discourse/db/migrate/20170201085745_create_custom_emojis.rb

13 lines
283 B
Ruby

class CreateCustomEmojis < ActiveRecord::Migration[4.2]
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