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

Use ActiveRecord.timestamped_migrations #352

Merged
merged 11 commits into from
Mar 8, 2024
Merged

Conversation

Spone
Copy link
Contributor

@Spone Spone commented Nov 6, 2023

Replace ActiveRecord::Base.timestamped_migrations with the newer ActiveRecord.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

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
@Spone
Copy link
Contributor Author

Spone commented Dec 22, 2023

👋 @joshbuker mind having a quick look?

@MSILycanthropy
Copy link

Any updates on this?

joshbuker
joshbuker previously approved these changes Mar 8, 2024
Copy link
Member

@joshbuker joshbuker left a 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.

@joshbuker joshbuker dismissed their stale review March 8, 2024 18:04

The merge-base changed after approval.

@Spone
Copy link
Contributor Author

Spone commented Mar 8, 2024

Thanks for checking this out @joshbuker! Any clue why the pipeline is failing? Doesn't seem related to my code 🤨

@joshbuker
Copy link
Member

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.

@joshbuker joshbuker merged commit ae44540 into Sorcery:master Mar 8, 2024
10 checks passed
@dylhack
Copy link

dylhack commented Mar 8, 2024

lol glad to catch you on mastodon. Thanks a ton!

@Spone Spone deleted the patch-2 branch March 8, 2024 21:07
@joshbuker
Copy link
Member

@dylhack @Spone, this is released as 0.17.0. Let me know if things break horribly; there's a CSRF test that fails in 7.1 that I have no idea what's going on with and has me a bit worried.

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.

generate sorcery:install fails because of depricated function "timestamped_migrations" Rails 7.1 support
4 participants