You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #rails_account_model configuration method has been added for specifying the account model class when it cannot be inferred from the table name. This is used by the #current_account controller helper method.
The default :dependent association option when using the Rodauth::Rails::Model mixin has been changed from :destroy to :delete/:delete_all. This works around issues with Active Record not supporting composite primary keys when destroying the account model. It's also more honest, given that closing the account will also delete associated records from the database without calling any destroy hooks.
The rodauth:install generator now sets delete_account_on_close? to true. This should allow the email of closed accounts to be available for creating a new accounts on databases that don't support partial unique indices, such as MySQL and SQLite.
This discussion was created from the release v0.17.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The
#rails_account_model
configuration method has been added for specifying the account model class when it cannot be inferred from the table name. This is used by the#current_account
controller helper method.The default
:dependent
association option when using theRodauth::Rails::Model
mixin has been changed from:destroy
to:delete
/:delete_all
. This works around issues with Active Record not supporting composite primary keys when destroying the account model. It's also more honest, given that closing the account will also delete associated records from the database without calling any destroy hooks.The
rodauth:install
generator now setsdelete_account_on_close?
totrue
. This should allow the email of closed accounts to be available for creating a new accounts on databases that don't support partial unique indices, such as MySQL and SQLite.This discussion was created from the release v0.17.0.
Beta Was this translation helpful? Give feedback.
All reactions