diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-15 12:41:30 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-15 12:41:30 -0600 |
| commit | d9fc812024357bbc05b4fb2b9df0509183089833 (patch) | |
| tree | 8ec82482cf934d33382484d7f70e6b5613cf02e2 /rvh/app | |
| parent | 1751eb5048052a73b486b651d302e7e9fdf738c0 (diff) | |
Record consumptions
Diffstat (limited to 'rvh/app')
| -rw-r--r-- | rvh/app/models/consumption.rb | 4 | ||||
| -rw-r--r-- | rvh/app/models/item.rb | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/rvh/app/models/consumption.rb b/rvh/app/models/consumption.rb new file mode 100644 index 0000000..bffa146 --- /dev/null +++ b/rvh/app/models/consumption.rb @@ -0,0 +1,4 @@ +class Consumption < ApplicationRecord + belongs_to :patient + belongs_to :item +end diff --git a/rvh/app/models/item.rb b/rvh/app/models/item.rb new file mode 100644 index 0000000..ad849b9 --- /dev/null +++ b/rvh/app/models/item.rb @@ -0,0 +1,3 @@ +class Item < ApplicationRecord + has_many :consumptions +end |
