diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-01-30 12:38:15 -0500 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-02-01 12:14:46 -0500 |
commit | 07eb2f1297e3172cc01b3899f0ba799b1e4aafdc (patch) | |
tree | 39cf34b44a5875b57e2f530c37978d39521fc487 /db/migrate | |
parent | e3f42c8d961918ac1d6a2dba712462a5bfe44219 (diff) | |
download | gitlab-ce-07eb2f1297e3172cc01b3899f0ba799b1e4aafdc.tar.gz |
fix the migration from not reverting correctly
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20180119135717_add_uploader_index_to_uploads.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20180119135717_add_uploader_index_to_uploads.rb b/db/migrate/20180119135717_add_uploader_index_to_uploads.rb index 7fedfaa5d7d..a678c3d049f 100644 --- a/db/migrate/20180119135717_add_uploader_index_to_uploads.rb +++ b/db/migrate/20180119135717_add_uploader_index_to_uploads.rb @@ -9,12 +9,12 @@ class AddUploaderIndexToUploads < ActiveRecord::Migration disable_ddl_transaction! def up - remove_concurrent_index :uploads, :path if index_exists? :uploads, :path + remove_concurrent_index :uploads, :path add_concurrent_index :uploads, [:uploader, :path], using: :btree end def down - remove_concurrent_index :uploads, [:uploader, :path] if index_exists? :uploads, [:uploads, :path] + remove_concurrent_index :uploads, [:uploader, :path] add_concurrent_index :uploads, :path, using: :btree end end |