mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 15:35:12 +08:00
13 lines
278 B
Ruby
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
|