-
Notifications
You must be signed in to change notification settings - Fork 0
active record 7 #45
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
active record 7 #45
Conversation
51da379 to
71b696a
Compare
d294e5e to
7e2f2f0
Compare
| iterator.new(ff).each do |tname, label, row| | ||
| conn.insert_fixture(row, tname) | ||
| @label_to_id[label] = conn.send(:last_inserted_id, tname) unless label == NO_LABEL | ||
| last_inserted_id = conn.insert(conn.send(:build_fixture_sql, Array.wrap(row), tname)) |
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.
rails 7 drops sqlite-specific last_inserted_id and the old API was invalid
|
I had trouble figuring out how the authentication works for that script. That said, maybe it would be quicker for you to give it a go. Here's the branch with rails 7.0 already setup: https://github.com/NoRedInk/NoRedInk/pull/51365 |
@derek-noredink upgraded this to support active record 7 as far as I can tell
can you test this against the monolith (using AR 7) and see if it still works?
the commands in the monolith are ...
./script/export_live_fixtures.shto test building the fixtures andrake db:resetto test importing the fixturescontributes to https://linear.app/noredink/issue/FXN-3849/upgrade-rails-to-72