summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2018-06-16 13:11:50 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2018-06-16 13:11:50 +1100
commit75946b40358b6ba2e96eb8ec300fd8d05d81fd09 (patch)
tree0f92ee9f175e9c3099d1b68b8f689b347639973c /lib
parent958c047516e182dfc52317f721f696e8a1ee85ed (diff)
downloadgitlab-ce-75946b40358b6ba2e96eb8ec300fd8d05d81fd09.tar.gz
[Rails5] Disable inheritance_column for Gitlab::Database::RenameReservedPathsMigration::V1::MigrationClasses::Namespaceblackst0ne-rails5-invalid-single-table-inheritance-type-group-is-not-a-subclass-of-namespace
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb b/lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb
index 62d4d0a92a6..26ae6966746 100644
--- a/lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb
+++ b/lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb
@@ -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