Files
fizzy/db/migrate/20250214222911_create_reactions.rb
T
2025-02-18 17:08:56 -06:00

15 lines
346 B
Ruby

class CreateReactions < ActiveRecord::Migration[8.1]
def change
create_table :reactions do |t|
t.integer :comment_id, null: false
t.integer :reacter_id, null: false
t.string :content, limit: 16, null: false
t.timestamps
end
add_index :reactions, :comment_id
add_index :reactions, :reacter_id
end
end