sillyforum/db/migrate/20260317092115_create_replies.rb
2026-03-17 12:49:38 +00:00

10 lines
190 B
Ruby

class CreateReplies < ActiveRecord::Migration[8.1]
def change
create_table :replies do |t|
t.text :body
t.timestamps
end
add_reference :replies, :thread
end
end