Class: Gitlab::Database::RenameReservedPathsMigration::V1::MigrationClasses::Namespace
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gitlab::Database::RenameReservedPathsMigration::V1::MigrationClasses::Namespace
- Includes:
- Routable
- Defined in:
- lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb
Class Method Summary collapse
-
.name ⇒ Object
Overridden to have the correct ‘source_type` for the `route` relation.
Instance Method Summary collapse
Methods included from Routable
#build_full_path, #full_path, #prepare_route, #update_route
Class Method Details
.name ⇒ Object
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
#kind ⇒ Object
55 56 57 |
# File 'lib/gitlab/database/rename_reserved_paths_migration/v1/migration_classes.rb', line 55 def kind type == 'Group' ? 'group' : 'user' end |