diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-04-30 21:06:11 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-01 12:14:24 +0300 |
commit | 2e2a63c8669a084ed3a3aa5e770158ea2cb43a9d (patch) | |
tree | 3dd6be25223a6fb48c0119a55b62efccade19680 /db | |
parent | 08b1bc3489e8d4e6d5786221bad090f16a1c021f (diff) |
Rename child namespaces in migrationhelpers
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb b/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb index 0fe04a23959..a23f83205f1 100644 --- a/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb +++ b/db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb @@ -23,6 +23,7 @@ class RenameReservedDynamicPaths < ActiveRecord::Migration notification_settings oauth sent_notifications + unicorn_test uploads users ] @@ -33,9 +34,19 @@ class RenameReservedDynamicPaths < ActiveRecord::Migration info/lfs/objects ] + DISSALLOWED_GROUP_PATHS = %w[ + activity + avatar + group_members + labels + milestones + subgroups + ] + def up rename_root_paths(DISALLOWED_ROOT_PATHS) rename_wildcard_paths(DISALLOWED_WILDCARD_PATHS) + rename_child_paths(DISSALLOWED_GROUP_PATHS) end def down |