From f4dc26786fcf9c7fca0c5d0241f94d36e52143cd Mon Sep 17 00:00:00 2001 From: Ryan Arakawa Date: Tue, 30 Sep 2025 17:20:50 -0500 Subject: [PATCH] Update 20250924174100_rename_account_groups_to_partnerships.rb (#24) --- .../20250924174100_rename_account_groups_to_partnerships.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/migrate/20250924174100_rename_account_groups_to_partnerships.rb b/db/migrate/20250924174100_rename_account_groups_to_partnerships.rb index bb43cde6..9075cec8 100644 --- a/db/migrate/20250924174100_rename_account_groups_to_partnerships.rb +++ b/db/migrate/20250924174100_rename_account_groups_to_partnerships.rb @@ -6,7 +6,9 @@ class RenameAccountGroupsToPartnerships < ActiveRecord::Migration[8.0] # Rename the foreign key columns in other tables rename_column :templates, :account_group_id, :partnership_id rename_column :template_folders, :account_group_id, :partnership_id - rename_column :export_locations, :global_account_group_id, :global_partnership_id + + # Add global_partnership_id to export_locations + add_column :export_locations, :global_partnership_id, :integer # Remove partnership relationships since both users and accounts use API context now remove_column :users, :account_group_id, :bigint