1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Family invites (#1397)

* Initial pass at household invites

* Invitee setup

* Clean up add member form

* Lint and other tweaks

* Security cleanup

* Lint

* i18n fixes

* More i18n cleanup

* Show pending invites

* Don't use turbo on the form

* Improved email design

* Basic tests

* Lint

* Update onboardings_controller.rb

* Registration + invite cleanup

* Lint

* Update brakeman.ignore

* Update brakeman.ignore

* Self host invite links

* Test tweaks

* Address missing param error
This commit is contained in:
Josh Pigford 2024-11-01 10:23:27 -05:00 committed by GitHub
parent 09b269273a
commit 793bd852a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 502 additions and 45 deletions

View file

@ -0,0 +1,18 @@
class CreateInvitations < ActiveRecord::Migration[7.2]
def change
create_table :invitations, id: :uuid do |t|
t.string :email
t.string :role
t.string :token
t.references :family, null: false, foreign_key: true, type: :uuid
t.references :inviter, null: false, foreign_key: { to_table: :users }, type: :uuid
t.datetime :accepted_at
t.datetime :expires_at
t.timestamps
end
add_index :invitations, :token, unique: true
add_index :invitations, :email
end
end