diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-01-03 17:49:34 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-01-08 10:22:17 +0300 |
commit | 665972e2f51ae8a72a307dc4926d379bff816336 (patch) | |
tree | de532bb2730704eddacd3f0d4fea164d45e42071 /db | |
parent | 9b7719b6c60f2ba9a2e8e6ded543bb4fb87cd11b (diff) |
Avoid quotes in ActiveRecord query
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb | 8 |
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 |