When using multiple configuration, what's the recommended way to save the account "type"? #233
nicolas-besnard
started this conversation in
General
Replies: 1 comment
-
This should be as simple as: accounts_table do
if admin_criteria
:admin_accounts
else
:accounts
end
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently using
rodauth-rails
in my project, and I would like to have differentaccounts
table (accounts
andadmin_accounts
) to have a clear separation and avoid problem in the feature.In
rodauth-rails
documentation, the Wiki propose to have oneaccounts
table and use a different one for "account types).You can also have a new column in your
accounts
table to old this info.If I were to use Devise, I could easily configure 2 different models. With
rodauth
, it requires to redefine a lot configuration (likeverify_account_table
,accounts_table
etc...)What would be your recommendation/proposal for a safe multi-type accounts using multiple configuration ?
Beta Was this translation helpful? Give feedback.
All reactions