blob: 860f0d3b35dd2bd55112efb555e613f8c6949ade (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class CreateTreatments < ActiveRecord::Migration[6.0]
def change
create_table :treatments do |t|
t.references :employee, null: false, foreign_key: true
t.references :patient, null: false, foreign_key: true
t.string :name, null: false
t.datetime :occurred_at, null: false
t.text :results
t.timestamps
end
end
end
|