Introduce untenanted Identity and Membership models

and a script to populate these tables for existing 37id users
This commit is contained in:
Mike Dalessio
2025-09-29 14:44:54 -04:00
committed by Stanko K.R.
parent 1277cc065b
commit d0215e9fd2
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
class Membership < UntenantedRecord
belongs_to :identity, touch: true
has_many :magic_links, dependent: :delete
# I want this to be `belongs_to :user`, but ActiveRecord::Tenanted doesn't yet support
# associations from untenanted to untenanted models.
+1
View File
@@ -0,0 +1 @@
+1
View File
@@ -0,0 +1 @@