forked from fixin.me/fixin.me
Set constraints on Readouts.user_id foreign key
Add Measurements table
This commit is contained in:
@@ -4,4 +4,6 @@ class Readout < ApplicationRecord
|
||||
belongs_to :user
|
||||
belongs_to :quantity
|
||||
belongs_to :unit
|
||||
|
||||
# TODO: validate quantity.user_id == unit.user_id != NULL
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user