Avoid quotes in ActiveRecord query
This commit is contained in:
parent
9b7719b6c6
commit
665972e2f5
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue