Added Targets table
Fixed Quantity#after_save for default quantities
This commit is contained in:
@@ -92,5 +92,14 @@ class CreateSchema < ActiveRecord::Migration
|
||||
t.timestamp :taken_at
|
||||
t.timestamps null: false
|
||||
end
|
||||
|
||||
create_table :targets do |t|
|
||||
t.references :goal
|
||||
t.references :threshold
|
||||
t.string :condition
|
||||
t.string :scope
|
||||
t.date :effective_from
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user