diff options
Diffstat (limited to 'db/migrate/20250908181147_create_target_allocations.rb')
-rw-r--r-- | db/migrate/20250908181147_create_target_allocations.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20250908181147_create_target_allocations.rb b/db/migrate/20250908181147_create_target_allocations.rb new file mode 100644 index 0000000..9141bd3 --- /dev/null +++ b/db/migrate/20250908181147_create_target_allocations.rb @@ -0,0 +1,11 @@ +class CreateTargetAllocations < ActiveRecord::Migration[8.0] + def change + create_table :target_allocations do |t| + t.references :target, null: false, foreign_key: true + t.references :nutrient_profile, null: false, foreign_key: true + t.decimal :percentage + + t.timestamps + end + end +end |