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
This commit is contained in:
Jorge Manrubia
2025-11-27 12:57:36 +01:00
parent 2061ab4ab2
commit 4e09352c09
19 changed files with 443 additions and 34 deletions
@@ -1,6 +1,6 @@
class CreateAccountExternalIdSequences < ActiveRecord::Migration[8.0]
def change
create_table :account_external_id_sequences do |t|
create_table :account_external_id_sequences, id: :uuid do |t|
t.bigint :value, null: false, default: 0
t.index :value, unique: true