Commit 1427ac19 authored by Sean McGivern's avatar Sean McGivern Committed by Felipe Artur

Merge branch '28850-fix-broken-migration' into 'master'

Disable the inheritance column of services in DisableInvalidServiceTemplates migration

Closes #28850

See merge request !9613
parent bf5231a1
---
title: Fix broken migration when upgrading straight to 8.17.1
merge_request: 9613
author:
class DisableInvalidServiceTemplates < ActiveRecord::Migration class DisableInvalidServiceTemplates < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
unless defined?(Service)
class Service < ActiveRecord::Base class Service < ActiveRecord::Base
self.inheritance_column = nil self.inheritance_column = nil
end end
end
def up def up
Service.where(template: true, active: true).each do |template| Service.where(template: true, active: true).each do |template|
......
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