diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-10 21:07:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-10 21:07:43 +0300 |
commit | 6f0f893bd87535b61e0ecb1ce069eaa7fcb9e5be (patch) | |
tree | 8af92b29c838e9af2fd70f9a4a2314a08f4af922 /db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb | |
parent | 8b1228b0d409d7751f01d9fb72ebfbbf62399486 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb')
-rw-r--r-- | db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb b/db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb new file mode 100644 index 00000000000..86a69275cb7 --- /dev/null +++ b/db/migrate/20200108233040_remove_index_project_mirror_data_on_jid.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class RemoveIndexProjectMirrorDataOnJid < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + remove_concurrent_index :project_mirror_data, :jid + end + + def down + add_concurrent_index :project_mirror_data, :jid + end +end |