15 lines
540 B
Ruby
15 lines
540 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateEmojiReactions < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :emoji_reactions do |t|
|
|
t.belongs_to :account, null: false, foreign_key: { on_delete: :cascade }
|
|
t.belongs_to :status, null: false, foreign_key: { on_delete: :cascade }
|
|
t.string :name, null: false, default: ''
|
|
t.belongs_to :custom_emoji, foreign_key: { on_delete: :cascade }
|
|
t.string :uri
|
|
t.datetime :created_at, null: false
|
|
t.datetime :updated_at, null: false
|
|
end
|
|
end
|
|
end
|