1
0

Added Quantity nesting with awesome_nested_set

This commit is contained in:
cryptogopher
2019-09-08 20:00:35 +02:00
parent 96509d5285
commit b31ab9d16a
8 changed files with 35 additions and 19 deletions

View File

@@ -1,4 +1,6 @@
class Quantity < ActiveRecord::Base
acts_as_nested_set dependent: :nullify, scope: :project
enum domain: {
diet: 0,
measurement: 1,