Class: Gitlab::Database::RenameReservedPathsMigration::V1::MigrationClasses::Namespace

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Routable
Defined in:
lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Routable

#build_full_path, #full_path, #prepare_route, #update_route

Class Method Details

.nameObject

Overridden to have the correct ‘source_type` for the `route` relation



51
52
53
# File 'lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb', line 51

def self.name
  'Namespace'
end

Instance Method Details

#kindObject



55
56
57
# File 'lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb', line 55

def kind
  type == 'Group' ? 'group' : 'user'
end