Closed dorianmariecom closed 8 months ago
A quick fix is to do DB.extension :pg_enum rescue ActiveRecord::NoDatabaseError
This is an issue with sequel-activerecord-connection, not Sequel itself. You probably need to make sure you are connected with ActiveRecord before issuing queries in Sequel if you are using sequel-activerecord-connection.
No problem, posted the issue there https://github.com/janko/sequel-activerecord_connection/issues/27
Complete Description of Issue
When running
rake db:create
on a rails app with sequel and this the following initializer, the pg_enum extension tries to connect to the database and thus there is an errorSimplest Possible Self-Contained Example Showing the Bug
Have a rails with this initializer:
Full Backtrace of Exception (if any)
SQL Log (if any)
None
Ruby Version
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
Sequel Version
sequel 5.78.0