diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-08 00:07:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-08 00:07:54 +0300 |
commit | 8c8b94e7116fa478ad490bd14c09565d23097f57 (patch) | |
tree | 9e4637aa0fe498a5523c86932b87ff691ec72af6 /db/migrate/20190913175827_add_index_to_software_licenses_on_spdx_id.rb | |
parent | eadb77d89f5f7d445bfd326f18873168f4719f12 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20190913175827_add_index_to_software_licenses_on_spdx_id.rb')
-rw-r--r-- | db/migrate/20190913175827_add_index_to_software_licenses_on_spdx_id.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20190913175827_add_index_to_software_licenses_on_spdx_id.rb b/db/migrate/20190913175827_add_index_to_software_licenses_on_spdx_id.rb new file mode 100644 index 00000000000..94f8738b0cc --- /dev/null +++ b/db/migrate/20190913175827_add_index_to_software_licenses_on_spdx_id.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddIndexToSoftwareLicensesOnSpdxId < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_concurrent_index :software_licenses, :spdx_identifier + end + + def down + remove_concurrent_index :software_licenses, :spdx_identifier + end +end |