asxpio/db/migrations/011_users_choose_username.rb
Sergei Poljanski 78ea9926e7
All checks were successful
Build and Deploy to Production / test (push) Successful in 25s
Build and Deploy to Production / build (push) Successful in 1m2s
Build and Deploy to Production / deploy (push) Successful in 38s
admin: invite links without a username
Leaving the username empty when creating a user makes the account
invite-<hex>; the invitee picks the real username on the invite page
(taken names and the invite- prefix are refused). Without an email this
gives a plain invite link to share.

Assisted-by: Claude:opus-5
2026-10-10 09:12:21 +04:00

7 lines
224 B
Ruby

Sequel.migration do
change do
# Created as "invite-<hex>"; the invitee picks the real username when
# accepting the invite.
add_column :users, :choose_username, TrueClass, null: false, default: false
end
end