Finished Sources implementation
This commit is contained in:
@@ -3,6 +3,7 @@ module BodyTracking
|
||||
Project.class_eval do
|
||||
has_many :ingredients, -> { order "name" }, dependent: :destroy
|
||||
|
||||
has_many :sources, dependent: :destroy
|
||||
has_many :quantities, -> { order "lft" }, dependent: :destroy
|
||||
has_many :units, dependent: :destroy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user