discourse/db/migrate/20170201085745_create_custom_emojis.rb
Guo Xiang Tan 1a7e954e09 FIX: Store custom emojis as uploads.
* Depending on a hardcoded directory was a flawed design
  which made it impossible to debug when custom emojis go
  missing.
2017-03-14 13:07:18 +08:00

13 lines
278 B
Ruby

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