3ef5e4eeef
Before, we were relying on just changing the cards_count in account, but this could create problems where the system to calculate the next card number fails due to the unique constraint.
11 lines
287 B
Ruby
11 lines
287 B
Ruby
class CreateAccountOverriddenLimits < ActiveRecord::Migration[8.2]
|
|
def change
|
|
create_table :account_overridden_limits, id: :uuid do |t|
|
|
t.references :account, null: false, type: :uuid, index: { unique: true }
|
|
t.integer :card_count
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|