Files
fizzy/saas/db/migrate/20251215140000_create_account_overridden_limits.rb
Jorge Manrubia 3ef5e4eeef Add record to track overridden limits
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.
2025-12-16 12:00:23 +01:00

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