Nick Thomas
|
013f7cd24c
|
Inherit from ApplicationRecord instead of ActiveRecord::Base
|
2019-03-28 16:18:23 +00:00 |
|
Nick Thomas
|
9f05e97aad
|
Run rubocop -a
|
2019-03-13 13:42:43 +00:00 |
|
gfyoung
|
50abbd3e53
|
Enable frozen string in app/models/*.rb
Partially addresses #47424.
|
2018-07-26 16:55:41 -07:00 |
|
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 |
|