summaryrefslogtreecommitdiff
path: root/app/models/application_record.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42GitLab Bot2020-10-211-0/+14
|
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-0/+4
|
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-201-4/+4
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-0/+8
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-0/+4
|
* Optimise upload path callsSean McGivern2019-05-141-0/+4
| | | | | | | | String#underscore isn't particularly slow, but it's possible for us to call it many times in a users autocomplete request, with mostly-static values ('User', 'Group', etc.). We can memoise this and save a surprising amount of time (around 10% of the total request time in some cases).
* Merge branch 'security-approval-race-condition' into 'master'GitLab Release Tools Bot2019-04-251-3/+14
|\ | | | | | | | | Add ApplicationRecord#safe_ensure_unique method See merge request gitlab/gitlabhq!3054
| * Add ApplicationRecord#safe_ensure_unique methodPatrick Bajao2019-04-121-3/+14
| | | | | | | | | | | | 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.
* | Forbid the use of `#reload` and prefer `#reset`forbid-the-usage-of-reloadKamil TrzciƄski2019-04-151-0/+2
|/ | | | | | | The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
* Add a thin encapsulation around .pluck(:id)Nick Thomas2019-03-281-0/+8
|
* Avoid race conditions when creating GpgSignatureBob Van Landuyt2019-02-061-0/+6
| | | | This avoids race conditions when creating GpgSignature.
* Adds helper for `find_or_create_by` in transactionBob Van Landuyt2019-02-051-0/+8
| | | | This allows us to call `find_or_create_by` on all models and scopes.
* Add query method for id queryMark Chao2019-01-151-0/+4
|
* Add ApplicationRecord model classJan Provaznik2018-11-141-0/+5
In Rails 5 all models by default inherit from ApplicationRecord.