summaryrefslogtreecommitdiff
path: root/db/post_migrate/20170211073944_disable_invalid_service_templates.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20170211073944_disable_invalid_service_templates.rb')
-rw-r--r--db/post_migrate/20170211073944_disable_invalid_service_templates.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/db/post_migrate/20170211073944_disable_invalid_service_templates.rb b/db/post_migrate/20170211073944_disable_invalid_service_templates.rb
deleted file mode 100644
index 31234e5b086..00000000000
--- a/db/post_migrate/20170211073944_disable_invalid_service_templates.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-class DisableInvalidServiceTemplates < ActiveRecord::Migration[4.2]
- DOWNTIME = false
-
- class Service < ActiveRecord::Base
- self.inheritance_column = nil
- end
-
- def up
- Service.where(template: true, active: true).each do |template|
- template.update(active: false) unless template.valid?
- end
- end
-end