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