nyastodon/db/migrate/20221123004534_create_emoji_reactions.rb
2022-11-24 05:59:09 +00:00

11 lines
291 B
Ruby

class CreateEmojiReactions < ActiveRecord::Migration[6.1]
def change
create_table :emoji_reactions do |t|
t.string :emoji
t.references :status, null: false, foreign_key: true
t.references :account, null: false, foreign_key: true
t.timestamps
end
end
end