Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-22 23:04:56 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-22 23:04:56 +0400
commit4d56c359d343ba3a1117dfc06034820a415450d3 (patch)
tree40232c2176dc8f46e7ab96de0bd45c1bc2934173 /db/migrate
parent1018cbdc803d56e6cae385aee97aa04752d3e3fb (diff)
parenta3f645ef51ec12ce93934b4ddb11313613d8c451 (diff)
Merge pull request #6075 from skv-headless/remove_deprecated_finders
Remove deprecated finders
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20130506095501_remove_project_id_from_key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20130506095501_remove_project_id_from_key.rb b/db/migrate/20130506095501_remove_project_id_from_key.rb
index 4214fd45d14..6b794cfb5c1 100644
--- a/db/migrate/20130506095501_remove_project_id_from_key.rb
+++ b/db/migrate/20130506095501_remove_project_id_from_key.rb
@@ -4,7 +4,7 @@ class RemoveProjectIdFromKey < ActiveRecord::Migration
Key.where('project_id IS NOT NULL').update_all(type: 'DeployKey')
DeployKey.all.each do |key|
- project = Project.find_by_id(key.project_id)
+ project = Project.find_by(id: key.project_id)
if project
project.deploy_keys << key
print '.'