Commit 665972e2 authored by Shinya Maeda's avatar Shinya Maeda

Avoid quotes in ActiveRecord query

parent 9b7719b6
...@@ -55,10 +55,10 @@ class MigrateKubernetesServiceToNewClustersArchitectures < ActiveRecord::Migrati ...@@ -55,10 +55,10 @@ class MigrateKubernetesServiceToNewClustersArchitectures < ActiveRecord::Migrati
belongs_to :project, class_name: 'MigrateKubernetesServiceToNewClustersArchitectures::Project' belongs_to :project, class_name: 'MigrateKubernetesServiceToNewClustersArchitectures::Project'
scope :kubernetes_service, -> do scope :kubernetes_service, -> do
where("services.category = 'deployment'") where(category: 'deployment')
.where("services.type = 'KubernetesService'") .where(type: 'KubernetesService')
.where("services.template = FALSE") .where(template: false)
.order('services.project_id') .order(project_id: :asc)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment