Remove customer_id relationship from CloudActivation
Problem
In #4800 (closed), CloudActivation should be associated with a BillingAccount, as well as a Customer (to be renamed User). However, the Customer association is not ideal and should be removed once the new BillingAccount structure is vetted and the feature flag is ready for promotion. As part of removing the feature flag, the CloudActivation association with Customer should be removed.
Proposal
Once the feature flag is ready to be removed, we should removed the customer_id foreign key from cloud_activations, but this needs to be done in several steps to avoid downtime.
- MR 1
- Remove not null constraint on
customer_idcolumn
- Remove not null constraint on
- MR 2
- Remove code that uses or sets
customer_idand ignorecustomer_idcolumn
- Remove code that uses or sets
- MR 3
- Drop the
customer_idcolumn and the index associated
- Drop the
- MR 4
- Remove the ignore
customer_idrule
- Remove the ignore
Edited by Divya Mahadevan