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.
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
logo_david:
|
|
id: <%= ActiveRecord::FixtureSet.identify("logo_david_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: logo_uuid
|
|
user: david_uuid
|
|
watching: true
|
|
|
|
logo_kevin:
|
|
id: <%= ActiveRecord::FixtureSet.identify("logo_kevin_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: logo_uuid
|
|
user: kevin_uuid
|
|
watching: true
|
|
|
|
layout_david:
|
|
id: <%= ActiveRecord::FixtureSet.identify("layout_david_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: layout_uuid
|
|
user: david_uuid
|
|
watching: true
|
|
|
|
layout_kevin:
|
|
id: <%= ActiveRecord::FixtureSet.identify("layout_kevin_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: layout_uuid
|
|
user: kevin_uuid
|
|
watching: true
|
|
|
|
text_david:
|
|
id: <%= ActiveRecord::FixtureSet.identify("text_david_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: text_uuid
|
|
user: david_uuid
|
|
watching: true
|
|
|
|
text_jz:
|
|
id: <%= ActiveRecord::FixtureSet.identify("text_jz_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: text_uuid
|
|
user: jz_uuid
|
|
watching: true
|
|
|
|
shipping_david:
|
|
id: <%= ActiveRecord::FixtureSet.identify("shipping_david_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: shipping_uuid
|
|
user: david_uuid
|
|
watching: true
|
|
|
|
shipping_jz:
|
|
id: <%= ActiveRecord::FixtureSet.identify("shipping_jz_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: shipping_uuid
|
|
user: jz_uuid
|
|
watching: true
|
|
|
|
shipping_kevin:
|
|
id: <%= ActiveRecord::FixtureSet.identify("shipping_kevin_watch", :uuid) %>
|
|
account: 37s_uuid
|
|
card: shipping_uuid
|
|
user: kevin_uuid
|
|
watching: true
|