fe6df7085f
Schema: - add account_id to tables it was missing from - make account_id a required column everywhere - add [account_id] indexes, or add `account_id` to existing indices Models: - add `belongs_to :account` to all models (default to using a domain model's account whenever possible) - add account_id in all the necessary fixtures - add account_id to insert_all hashes - pass account_id to a few initialize calls Miscellaneous: - update the import script to set account_id Note that I'm not adding account_id to the join tables primarily because I couldn't think of an easy way to populate it without making it a full Join model, and that was more work than I have time to take on right now.
27 lines
674 B
YAML
27 lines
674 B
YAML
_fixture:
|
|
model_class: User::Settings
|
|
|
|
david_settings:
|
|
id: <%= ActiveRecord::FixtureSet.identify("david_settings", :uuid) %>
|
|
account: 37s_uuid
|
|
user: david_uuid
|
|
bundle_email_frequency: never
|
|
|
|
jz_settings:
|
|
id: <%= ActiveRecord::FixtureSet.identify("jz_settings", :uuid) %>
|
|
account: 37s_uuid
|
|
user: jz_uuid
|
|
bundle_email_frequency: never
|
|
|
|
kevin_settings:
|
|
id: <%= ActiveRecord::FixtureSet.identify("kevin_settings", :uuid) %>
|
|
account: 37s_uuid
|
|
user: kevin_uuid
|
|
bundle_email_frequency: never
|
|
|
|
system_settings:
|
|
id: <%= ActiveRecord::FixtureSet.identify("system_settings", :uuid) %>
|
|
account: 37s_uuid
|
|
user: system_uuid
|
|
bundle_email_frequency: never
|