diff options
Diffstat (limited to 'db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb')
-rw-r--r-- | db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb b/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb index 88eca39c716..0fe04a23959 100644 --- a/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb +++ b/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb @@ -2,33 +2,36 @@ # for more information on how to write migrations for GitLab. class RenameReservedDynamicPaths < ActiveRecord::Migration - include Gitlab::Database::RenameReservedPathsMigration + include Gitlab::Database::RenameReservedPathsMigration::V1 DOWNTIME = false disable_ddl_transaction! DISALLOWED_ROOT_PATHS = %w[ + - + abuse_reports api autocomplete - member explore - uploads + health_check import - notification_settings - abuse_reports invites - koding - health_check jwt + koding + member + notification_settings oauth sent_notifications - - + uploads users ] - DISALLOWED_WILDCARD_PATHS = %w[info/lfs/objects gitlab-lfs/objects - environments/folders] + DISALLOWED_WILDCARD_PATHS = %w[ + environments/folders + gitlab-lfs/objects + info/lfs/objects + ] def up rename_root_paths(DISALLOWED_ROOT_PATHS) |