class CreateCheckpoints < ActiveRecord::Migration[7.1] def change create_table :checkpoints do |t| t.string :title t.text :description t.references :run, null: false, foreign_key: true t.references :user, null: false, foreign_key: true t.timestamps end end end