blob: c46e4344af41fbddb88ade47a2b5ffaa238dadbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|