-
Notifications
You must be signed in to change notification settings - Fork 229
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
Use ActiveRecord.timestamped_migrations #352
Conversation
There's no need to call `inject_sorcery_to_model` in the previous method, since the generators execute all public methods in order.
Replace ActiveRecord::Base.timestamped_migrations with the newer ActiveRecord.timestamped_migrations
👋 @joshbuker mind having a quick look? |
Remove duplicate method in InstallGenerator
Any updates on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this accidentally included your other PR code as well, which confused me for a second. Looks good otherwise, and doesn't break our specs.
Thanks for checking this out @joshbuker! Any clue why the pipeline is failing? Doesn't seem related to my code 🤨 |
Looks like some version conflicts popped up? There's another PR fixing the test suite, I'll merge that into main and then into the PR and see if it resolves the issue. |
lol glad to catch you on mastodon. Thanks a ton! |
Replace
ActiveRecord::Base.timestamped_migrations
with the newerActiveRecord.timestamped_migrations
Internally, current versions of Rails use this syntax: https://github.com/search?q=repo%3Arails%2Frails%20timestamped_migrations&type=code
Close #349, close #353