-
Notifications
You must be signed in to change notification settings - Fork 71
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
BIB-46: Dual boot with Rails 7.1 #2581
base: main
Are you sure you want to change the base?
Conversation
…order to dual boot both rails
…ated and removed in Rails 7
@@ -149,7 +159,7 @@ GEM | |||
brakeman (5.4.1) | |||
buftok (0.2.0) | |||
builder (3.3.0) | |||
bullet (7.0.1) | |||
bullet (7.1.6) |
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.
Upgrade bullet
for Rails 7.1 support: https://github.com/flyerhzm/bullet/blob/main/CHANGELOG.md#710-10062023
So we can start work on Rails 7.1 upgrade. What - Update gemfiles and lock files. - Ensure CI runs tests for both versions. - Update incompatible gems. Jira: https://ombulabs.atlassian.net/browse/BIB-46
45d2fb1
to
f9b5d0a
Compare
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.
To early to approve this PR, we should wait for #2579 to be merged first
1d56154
to
0d597ae
Compare
@@ -185,7 +195,12 @@ GEM | |||
crass (1.0.6) | |||
css_parser (1.7.1) | |||
addressable | |||
database_cleaner (1.7.0) | |||
database_cleaner (2.0.2) |
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.
We updated database_cleaner
because we were getting this error in Rails 7.1:
An error occurred in a `before(:suite)` hook.
Failure/Error: DatabaseCleaner.clean_with(:deletion)
NoMethodError:
undefined method `table_name' for ActiveRecord::SchemaMigration:Class
# ./spec/rails_helper.rb:161:in `block (2 levels) in <top (required)>'
This PR adds the dual boot code to dual boot both Rails 7.0 and Rails 7.1 locally and in CI.
Running rails c and rails s should work as expected with no errors.
The CI should run the tests for Rails 7.1.
You can append
BUNDLE_GEMFILE=Gemfile.next
to a command, i.e.BUNDLE_GEMFILE=Gemfile.next rails c
to run whatever command using Rails 7.1.We will continue to fix the broken build in Rails 7.1 in upcoming PRs.