Commit graph

4 commits

Author SHA1 Message Date
Patrick Bajao
208338fde6 Add ApplicationRecord#safe_ensure_unique method
Port of https://dev.gitlab.org/gitlab/gitlab-ee/merge_requests/866
to CE excluding the migration and service changes as they don't
apply to CE.
2019-04-12 12:19:47 +08:00
Bob Van Landuyt
c982edfa19 Avoid race conditions when creating GpgSignature
This avoids race conditions when creating GpgSignature.
2019-02-06 15:24:46 +01:00
Bob Van Landuyt
ccd8a9b282 Adds helper for find_or_create_by in transaction
This allows us to call `find_or_create_by` on all models and scopes.
2019-02-05 14:44:41 +01:00
Mark Chao
d253440ed1 Add query method for id query 2019-01-15 17:10:30 +08:00