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