Avoid quotes in ActiveRecord query

This commit is contained in:
Shinya Maeda 2018-01-03 23:49:34 +09:00
parent 9b7719b6c6
commit 665972e2f5

View file

@ -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