add new migration
This commit is contained in:
parent
4721a6e459
commit
914b7b0971
1 changed files with 7 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
-- Ensure one Stripe account per user
|
||||
CREATE UNIQUE INDEX stripe_accounts_user_unique
|
||||
ON stripe_accounts (user_id);
|
||||
|
||||
-- Prevent the same Stripe account being linked twice
|
||||
CREATE UNIQUE INDEX stripe_accounts_stripe_account_unique
|
||||
ON stripe_accounts (stripe_account_id);
|
||||
Loading…
Add table
Reference in a new issue