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

Bug in lib/generators/cas_session_store_migration_generator.rb #97

Open
gbleydon opened this issue Sep 17, 2024 · 0 comments
Open

Bug in lib/generators/cas_session_store_migration_generator.rb #97

gbleydon opened this issue Sep 17, 2024 · 0 comments

Comments

@gbleydon
Copy link

Rails 7.1+

In /lib/generators/cas_session_store_migration_generator.rb you have:

if ActiveRecord::Base.timestamped_migrations
  ....
else
 ....
end

Should be

if ActiveRecord.timetamped_migrations
  ...
else
 ....
end

Without that change when you run the migration you get method missing error

bin/rails generate cas_session_store_migration
/home/vscode/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/activerecord-7.2.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `timestamped_migrations' for class ActiveRecord::Base (NoMethodError)
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