Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-25 15:10:04 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-05-01 12:14:24 +0300
commit99a03fd6e912f594f96176f581de47e1731d3459 (patch)
treedd89ac51910fabf2ed44e0cb2a06d5098b17c27c /db/post_migrate
parent12735eefcd7876435cd05f35a9f26bfe2836e09f (diff)
Move ReservedPathsMigration into V1 namespace
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20170412174900_rename_reserved_dynamic_paths.rb23
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)