Skip to content

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

Merged
ledermann merged 1 commit intoledermann:masterfrom
nicbet:patch-2
Oct 20, 2023
Merged

Fix NoMethodError on Rails 7.x when running rails g rails_settings:migration#114
ledermann merged 1 commit intoledermann:masterfrom
nicbet:patch-2

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
@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