discourse/db/migrate/20170201085745_create_custo...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
314 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
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