diff options
Diffstat (limited to 'db/migrate/20190815093949_remove_index_notes_on_noteable_type.rb')
-rw-r--r-- | db/migrate/20190815093949_remove_index_notes_on_noteable_type.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/db/migrate/20190815093949_remove_index_notes_on_noteable_type.rb b/db/migrate/20190815093949_remove_index_notes_on_noteable_type.rb deleted file mode 100644 index 158c88e6258..00000000000 --- a/db/migrate/20190815093949_remove_index_notes_on_noteable_type.rb +++ /dev/null @@ -1,29 +0,0 @@ -# frozen_string_literal: true - -class RemoveIndexNotesOnNoteableType < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - remove_concurrent_index(*index_arguments) - end - - def down - add_concurrent_index(*index_arguments) - end - - private - - def index_arguments - [ - :notes, - [:noteable_type], - { - name: 'index_notes_on_noteable_type' - } - ] - end -end |