diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-05-17 20:18:29 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-05-17 21:54:41 +0800 |
commit | 226b517ce70674a1c25084b8535dd6869addb21e (patch) | |
tree | 52c9e943796ac4e17a33c127be56e8860d6aa80a | |
parent | 71777a4a184945d6b58170af55d9fd9fef821ac9 (diff) | |
download | gitlab-ce-226b517ce70674a1c25084b8535dd6869addb21e.tar.gz |
Add migration to rename projects named jobs
-rw-r--r-- | db/post_migrate/20170517101044_rename_projects_named_jobs.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/db/post_migrate/20170517101044_rename_projects_named_jobs.rb b/db/post_migrate/20170517101044_rename_projects_named_jobs.rb new file mode 100644 index 00000000000..e5f44d9d7ce --- /dev/null +++ b/db/post_migrate/20170517101044_rename_projects_named_jobs.rb @@ -0,0 +1,14 @@ +class RenameProjectsNamedJobs < ActiveRecord::Migration + include Gitlab::Database::RenameReservedPathsMigration::V1 + + DOWNTIME = false + + disable_ddl_transaction! + + def up + rename_wildcard_paths('jobs') + end + + def down + end +end diff --git a/db/schema.rb b/db/schema.rb index 294e0b531eb..1090f8ff1c9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170516183131) do +ActiveRecord::Schema.define(version: 20170517101044) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" |