1 2 3 4 5 6 7 8 9 10
class CreatePatients < ActiveRecord::Migration[6.0] def change create_table :patients do |t| t.references :account, null: false, foreign_key: true, index: { unique: true } t.datetime :contacted_at, null: false t.timestamps end end end