Commit graph

5 commits

Author SHA1 Message Date
Andreas Brandl
9f7767079e Shortcut and return on duplicate record error. 2018-03-06 12:53:15 +01:00
Andreas Brandl
d270b85734 Nested transaction for find_or_create_by! queries.
For background see
https://apidock.com/rails/v4.2.7/ActiveRecord/Relation/find_or_create_by.
2018-03-06 12:53:15 +01:00
Andreas Brandl
e83e85ce11 Remove unnecessary safe guard. 2018-03-06 12:53:15 +01:00
Andreas Brandl
9ebbcb8f8b Operate on ids to avoid unnecessary loading. 2018-03-06 12:53:15 +01:00
Andreas Brandl
11a559f7c9 Singularize model name. 2018-03-06 12:53:14 +01:00
Renamed from app/models/user_interacted_projects.rb (Browse further)