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

NoMethodError: undefined method `needs_migration?' for ActiveRecord::Migrator:Class #816

Open
RochelLevi opened this issue Apr 9, 2018 · 3 comments

Comments

@RochelLevi
Copy link
Collaborator

This error is thrown immediately upon cloning and running learn due to the code in spec/spec_helper.rb line 8 and config.ru line 6. Students were able to move on after commenting out those methods, but the program would no longer throw a meaningful error if the migrations weren't run...

@marcelgalang
Copy link

I had a student with the same issue and found that ActiveRecord::Migrator:Class has been removed since Rails 5.1.

@AspenJames
Copy link
Contributor

FIX: change Gemfile line 5 to gem 'activerecord', '4.2', :require => 'active_record'
Save and execute bundle update

@atxrenegade
Copy link
Collaborator

It's pretty frustrating as a student to find this error in at least five labs and see that this was raised 4 and half months ago and still not addressed.

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

4 participants