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

Fix NoMethodError on Rails 7.x when running rails g rails_settings:migration #114

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

nicbet
Copy link
Contributor

@nicbet nicbet commented Oct 20, 2023

When attempting to run rails g rails_settings:migration in a Rails 7.x project, the generator fails with a NoMethodError out of activerecord-7.1.0/lib/active_record/dynamic_matchers.rb:22

The timestamped_migrations method was moved from ActiveRecord::Base to ActiveRecord in the 7.x branch, see rails/rails@bcd6c0f

When attempting to run `rails g rails_settings:migration` in a Rails `7.x` project, the generator fails with a `NoMethodError` out of `activerecord-7.1.0/lib/active_record/dynamic_matchers.rb:22`

The `timestamped_migrations` method was moved from `ActiveRecord::Base` to `ActiveRecord` in the `7.x` branch, see
rails/rails@bcd6c0f
@ledermann ledermann merged commit e47ab50 into ledermann:master Oct 20, 2023
9 checks passed
@ledermann
Copy link
Owner

Thanks! 👍

@rmtkcjs
Copy link

rmtkcjs commented Jan 4, 2024

dd

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

Successfully merging this pull request may close these issues.

3 participants