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
Make further progress deprecating Follower.user_id. #13945
Conversation
0ee9ffa
to
33ddc69
Compare
71d3229
to
89fdea1
Compare
89fdea1
to
00b0d74
Compare
section_code: @laurel_section_2.code, | ||
redirect: '/' | ||
} | ||
end |
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.
The test should create and destroy a Follower
, so it is misleading to assert that it does not create one.
def add_student(student, move_for_same_teacher: true) | ||
if move_for_same_teacher && (follower = student.followeds.find_by(user_id: user_id)) |
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.
As part of deprecating follower.user_id
, this "search" no longer references follower.user_id
.
2d74591
to
d078376
Compare
FYI @davidwufer. |
More steps towards removing the
user_id
column in thefollowers
table.Follower.user_id
inFactoryGirl
.user_must_be_section_user
validation onFollower
.Section#add_student
to not go throughFollower.user_id
.