class CreateConsumptions < ActiveRecord::Migration[6.0] def change create_table :consumptions do |t| t.references :patient, null: false, foreign_key: true #t.references :physician, null: false, foreign_key: true t.references :item, null: false, foreign_key: true t.datetime :consumed_at, null: false t.integer :quantity, null: false t.decimal :total_cost, null: false t.timestamps end end end