summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-01-03 23:49:34 +0900
committerShinya Maeda <shinya@gitlab.com>2018-01-08 16:22:17 +0900
commit665972e2f51ae8a72a307dc4926d379bff816336 (patch)
treede532bb2730704eddacd3f0d4fea164d45e42071
parent9b7719b6c60f2ba9a2e8e6ded543bb4fb87cd11b (diff)
downloadgitlab-ce-665972e2f51ae8a72a307dc4926d379bff816336.tar.gz
Avoid quotes in ActiveRecord query
-rw-r--r--db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb b/db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb
index da34880b4e1..e6c7ea58bd2 100644
--- a/db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb
+++ b/db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb
@@ -55,10 +55,10 @@ class MigrateKubernetesServiceToNewClustersArchitectures < ActiveRecord::Migrati
belongs_to :project, class_name: 'MigrateKubernetesServiceToNewClustersArchitectures::Project'
scope :kubernetes_service, -> do
- where("services.category = 'deployment'")
- .where("services.type = 'KubernetesService'")
- .where("services.template = FALSE")
- .order('services.project_id')
+ where(category: 'deployment')
+ .where(type: 'KubernetesService')
+ .where(template: false)
+ .order(project_id: :asc)
end
end