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

Switch to Rails 6.1 #365

Merged
merged 1 commit into from Dec 14, 2020
Merged

Switch to Rails 6.1 #365

merged 1 commit into from Dec 14, 2020

Conversation

iHiD
Copy link
Member

@iHiD iHiD commented Dec 11, 2020

No description provided.

@iHiD iHiD requested review from kntsoriano and ErikSchierboom and removed request for kntsoriano December 11, 2020 23:18
@@ -31,7 +31,7 @@ class Mentor::ReplyToDiscussionTest < ActiveSupport::TestCase
"foobar"
)
assert_equal 1, user.notifications.size
notification = user.notifications.first
notification = Notification.where(user: user).first
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are from me working on getting strict_loading working. It's problematic with FactoryBot so I've stopped for now. But these are still fine to merge.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's strict loading?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It basically causes an exception if an n+1 might happen.

rails/rails#37400
rails/rails#39491

@@ -5,9 +5,10 @@ class Create
initialize_with :solution, :submission

def call
time = Time.now.utc.to_s(:db)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOW() doesn't work with the latest version of MySQL on mac for some reason.

@iHiD iHiD closed this Dec 14, 2020
@iHiD iHiD reopened this Dec 14, 2020
@iHiD iHiD merged commit 8459cc6 into master Dec 14, 2020
@iHiD iHiD deleted the 6.1 branch December 14, 2020 13:25
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.

None yet

2 participants