1
0

Added MealsController#new and form autocomplete for Food

Renamed QuantityColumn -> Exposure
This commit is contained in:
cryptogopher
2020-04-15 23:42:58 +02:00
parent 8e8160c41a
commit e78803e474
27 changed files with 227 additions and 26 deletions

View File

@@ -27,8 +27,8 @@ class CreateSchema < ActiveRecord::Migration
t.timestamps null: false
end
create_table :quantity_columns do |t|
t.references :column_view, polymorphic: true
create_table :exposures do |t|
t.references :view, polymorphic: true
t.references :quantity
end
@@ -94,9 +94,9 @@ class CreateSchema < ActiveRecord::Migration
create_table :ingredients do |t|
t.references :composition, polymorphic: true
t.references :food
t.decimal :amount, precision: 12, scale: 6
t.references :part_of
t.decimal :ready_ratio, precision: 12, scale: 6
t.decimal :amount, precision: 12, scale: 6
t.timestamps null: false
end
end