1
0

WIP: Targets configurable with Quantities

This commit is contained in:
cryptogopher
2021-02-07 11:02:41 +01:00
parent 316005bf1f
commit 8b17b33603
23 changed files with 218 additions and 108 deletions

View File

@@ -10,6 +10,8 @@ class CreateSchema <
t.references :parent
t.integer :lft, null: false, index: true
t.integer :rgt, null: false, index: true
# TODO: remove depth (seems to be replaceable by lft)
t.integer :depth, null: false, default: 0
t.timestamps null: false
end
@@ -105,8 +107,8 @@ class CreateSchema <
create_table :targets do |t|
t.references :goal
t.references :quantity
t.references :item, polymorphic: true
t.string :condition
t.string :scope
t.date :effective_from
t.timestamps null: false