1
0

Finished Sources implementation

This commit is contained in:
cryptogopher
2019-09-23 20:13:09 +02:00
parent 35f8ec4b2c
commit 593e11ff53
7 changed files with 64 additions and 3 deletions

View File

@@ -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