Skip to content
Open
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@
add_foreign_key "appropriate_body_periods", "appropriate_bodies"
add_foreign_key "contract_banded_fee_structure_bands", "contract_banded_fee_structures", column: "banded_fee_structure_id", on_delete: :cascade
add_foreign_key "contracts", "contract_banded_fee_structures", column: "banded_fee_structure_id"
add_foreign_key "contracts", "contract_flat_rate_fee_structures", column: "flat_rate_fee_structure_id"
add_foreign_key "contracts", "contract_flat_rate_fee_structures", column: "flat_rate_fee_structure_id"
add_foreign_key "contracts", "active_lead_providers"
add_foreign_key "declarations", "delivery_partners", column: "delivery_partner_when_created_id"
add_foreign_key "declarations", "statements", column: "clawback_statement_id"
Expand Down
11 changes: 11 additions & 0 deletions db/seeds/reuse_choices_scenarios.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if Rails.env.staging? || Rails.env.development? || Rails.env.review?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update to if Rails.env.staging? before merging (otherwise can't test seeds)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, do you know why we want different seeds on staging compared to review etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to double-check with Emily!

require Rails.root.join("db/seeds/support/seeds/reuse_choices")

print_seed_info(
"Seeding reuse choices scenario schools (staging only)",
colour: :yellow,
blank_lines_before: 1
)

Seeds::ReuseChoices.new(contract_period_year: 2025).call
end
Loading