Create the tenant before the user so that the resource exists
Don't use the concern on the user model and add a belongs_to :account, optional: true. Then probably want validations to ensure an account always exists on update.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One thing though if the new user has not signed up yet, can not set an account, or account_id, get error You must set an account with Current.account=
Needs workaround for that.
Two possible options to consider: