Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle exec rake errors: NoMethodError: undefined method `migrations_paths' for an instance of ActiveRecord::ConnectionAdapters::PostgreSQLAdapter #146

Open
olleolleolle opened this issue Dec 10, 2024 · 0 comments

Comments

@olleolleolle
Copy link
Collaborator

% bundle exec rake
<:setup_and_run_spec> Ensuring database is prepared...
DEPRECATION WARNING: `to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1. To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`. (called from <top (required)> at /Users/olle.jonsson/opensource/active_record_upsert/spec/dummy/config/environment.rb:5)
rake aborted!
NoMethodError: undefined method `migrations_paths' for an instance of ActiveRecord::ConnectionAdapters::PostgreSQLAdapter (NoMethodError)

    ActiveRecord::Base.connection.migrations_paths << 'spec/dummy/db/migrate'
                                 ^^^^^^^^^^^^^^^^^
/Users/olle.jonsson/opensource/active_record_upsert/Rakefile:17:in `block in <top (required)>'
/Users/olle.jonsson/.rbenv/versions/3.3.4/bin/bundle:25:in `load'
/Users/olle.jonsson/.rbenv/versions/3.3.4/bin/bundle:25:in `<main>'
Tasks: TOP => default => setup_and_run_spec
(See full trace by running task with --trace)
@olleolleolle olleolleolle changed the title bundle exec rake errors bundle exec rake errors: NoMethodError: undefined method `migrations_paths' for an instance of ActiveRecord::ConnectionAdapters::PostgreSQLAdapter Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant