Files
fizzy/db/migrate/20251127000001_create_account_external_id_sequences.rb
T
Jorge Manrubia 4e09352c09 Bring simple signup flow from the fizzy-saas gem
We skip the QB code and we fill external account ids automatically on creation with a sequence

See:
https://github.com/basecamp/fizzy-saas/pull/7
2025-11-28 15:53:58 +01:00

10 lines
250 B
Ruby

class CreateAccountExternalIdSequences < ActiveRecord::Migration[8.0]
def change
create_table :account_external_id_sequences, id: :uuid do |t|
t.bigint :value, null: false, default: 0
t.index :value, unique: true
end
end
end