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
ActiveRecord::Migrator.migrations
raises NoMethodError
#72
Conversation
The result is same...Would you suggest something about the errors? |
@ebihara99999 thanks for the pull request, the code looks good 👍 I just triggered a travis build from master and it has the same failures, so it's not a problem with your commit ... something must have changed with a dependency I'll see about fixing master, then hopefully you can just rebase and the tests will pass 🤞 |
@jenseng |
@barthez Thanks a lot! |
I also ran into this so I merged both branches into master on my fork so that I could |
@jenseng any updates here? |
v0.2.21 has been released with these fixes, thanks for the PRs! |
Thanks! |
Without this, then running migrations would get... NoMethodError: undefined method `migrations' for ActiveRecord::Migrator:Class This is documented at jenseng/hair_trigger#72
* (build) Run tests in same version of Ruby as in Gemfile * (docs) The elastic.co images no longer works It throws the error docker: Error response from daemon: pull access denied for docker.elastic.co/elasticsearch, repository does not exist or may require 'docker login'. * (fix) Bump hairtrigger to avoid migrations error Without this, then running migrations would get... NoMethodError: undefined method `migrations' for ActiveRecord::Migrator:Class This is documented at jenseng/hair_trigger#72 * (fix) Avoid Faker error Without this, then the error NameError: uninitialized constant Faker would occur * (fix) Rails 5.2 renamed a method https://guides.rubyonrails.org/5_2_release_notes.html#active-support-notable-changes (search for secure_compare, which shows its safe for variable length strings)
Thank you for this great product.
Environment
About the error
I met the error shown below when run
rails db:migrate
Cause
This seems to result from this commit
#migrations
moves from class methods to instance methodsDifference is:
from:
https://github.com/rails/rails/blob/v5.1.6/activerecord/lib/active_record/migration.rb#L1064-L1074
to:
https://github.com/rails/rails/blob/v5.2.0/activerecord/lib/active_record/migration.rb#L1086-L1097
Thanks for reading.
Note
With travisCI, my forked project's tests failed but I don't know how to fix them. It would be
because of configuration; I would appreciate it if you could suggest how to fix when they also fail here.