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
Allow idempotent database registration for Rails reloading (#147)
* Allow idempotent database registration for Rails reloading
When using Rails' code reloading in development, the `to_prepare`
callback is executed multiple times, causing Nandi to attempt
re-registering databases. This would previously fail with
"Database already registered" error.
This change allows re-registration of databases when the configuration
is identical to the existing one, making the registration idempotent.
This is particularly important for Rails applications using the
`Rails.application.reloader.to_prepare` pattern.
The change maintains backward compatibility by still raising an error
when attempting to register a database with a different configuration.
Co-Authored-By: Claude <[email protected]>
* Bump version to 2.0.1 for bug fix release
---------
Co-authored-by: Claude <[email protected]>
0 commit comments