[Rails5] Disable inheritance_column for Gitlab::Database::RenameReservedPathsMigration::V1::MigrationClasses::Namespace
This commit is contained in:
parent
958c047516
commit
75946b4035
2 changed files with 7 additions and 0 deletions
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "[Rails5] Invalid single-table inheritance type: Group is not a subclass of
|
||||
Namespace"
|
||||
merge_request: 19918
|
||||
author: "@blackst0ne"
|
||||
type: fixed
|
|
@ -37,6 +37,7 @@ module Gitlab
|
|||
class Namespace < ActiveRecord::Base
|
||||
include MigrationClasses::Routable
|
||||
self.table_name = 'namespaces'
|
||||
self.inheritance_column = :_type_disabled
|
||||
belongs_to :parent,
|
||||
class_name: "#{MigrationClasses.name}::Namespace"
|
||||
has_one :route, as: :source
|
||||
|
|
Loading…
Reference in a new issue