summaryrefslogtreecommitdiff
path: root/app/models/deploy_keys_project.rb
Commit message (Collapse)AuthorAgeFilesLines
* Speed up loading and filtering deploy keys and their projectsNick Thomas2019-08-051-2/+1
| | | | | | | | | | This commit changes how we eager-load projects, routes, and namespaces required by the deploy keys endpoint, getting a 10x improvement in my local testing. The endpoint still doesn't scale in-general, but going from ~13 seconds to dump a 63K result to generating the same thing in ~1.6 seconds seems like a good improvement to me.
* Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas2019-03-281-1/+1
|
* Enable frozen string in app/models/*.rbrepo-forks/gitlab-ce-frozen-string-enable-app-modelsgfyoung2018-07-261-0/+2
| | | | Partially addresses #47424.
* Merge branch 'sh-migrate-can-push-to-deploy-keys-projects-10-3' into ↵Douwe Maan2018-01-161-2/+8
| | | | | | | | | | | | 'security-10-3' [10.3] Migrate `can_push` column from `keys` to `deploy_keys_project` See merge request gitlab/gitlabhq!2276 (cherry picked from commit f6ca52d31bac350a23938e0aebf717c767b4710c) 1f2bd3c0 Backport to 10.3
* Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher2017-08-151-1/+1
|
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-11/+0
| | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* Clean up code.Douwe Maan2015-04-031-4/+2
|
* Allow admin to create public deploy keys that are accessible to any project.Douwe Maan2015-04-031-1/+5
|
* Delete deploy key when last connection to a project is destroyed.Douwe Maan2015-03-171-0/+8
|
* Use strong params for 5 more modelsDmitriy Zaporozhets2014-06-261-3/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Re-annotate modelsDmitriy Zaporozhets2014-04-091-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* AnnotatedDmitriy Zaporozhets2013-06-191-0/+11
|
* Create DeployKey & DeployKeysProject models. Bulding many to many relation ↵Dmitriy Zaporozhets2013-05-061-0/+11
between deploy keys and projects