diff options
Diffstat (limited to 'db/migrate/20190926041216_add_user_indexes_to_design_management_versions.rb')
-rw-r--r-- | db/migrate/20190926041216_add_user_indexes_to_design_management_versions.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20190926041216_add_user_indexes_to_design_management_versions.rb b/db/migrate/20190926041216_add_user_indexes_to_design_management_versions.rb deleted file mode 100644 index 6eb9fdbbcaa..00000000000 --- a/db/migrate/20190926041216_add_user_indexes_to_design_management_versions.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -class AddUserIndexesToDesignManagementVersions < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - add_concurrent_foreign_key :design_management_versions, :users, column: :user_id, on_delete: :nullify - add_concurrent_index :design_management_versions, :user_id, where: 'user_id IS NOT NULL' - end - - def down - remove_concurrent_index :design_management_versions, :user_id - remove_foreign_key :design_management_versions, column: :user_id - end -end |