summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170308220217_add_index_to_note_original_discussion_id.rb18
-rw-r--r--db/schema.rb1
2 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20170308220217_add_index_to_note_original_discussion_id.rb b/db/migrate/20170308220217_add_index_to_note_original_discussion_id.rb
deleted file mode 100644
index 2c823ed84a9..00000000000
--- a/db/migrate/20170308220217_add_index_to_note_original_discussion_id.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# See http://doc.gitlab.com/ce/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-class AddIndexToNoteOriginalDiscussionId < ActiveRecord::Migration
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :notes, :original_discussion_id
- end
-
- def down
- remove_index :notes, :original_discussion_id if index_exists? :notes, :original_discussion_id
- end
-end
diff --git a/db/schema.rb b/db/schema.rb
index 1b23bab5af2..af7dc07d5ba 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -736,7 +736,6 @@ ActiveRecord::Schema.define(version: 20170402231018) do
add_index "notes", ["note"], name: "index_notes_on_note_trigram", using: :gin, opclasses: {"note"=>"gin_trgm_ops"}
add_index "notes", ["noteable_id", "noteable_type"], name: "index_notes_on_noteable_id_and_noteable_type", using: :btree
add_index "notes", ["noteable_type"], name: "index_notes_on_noteable_type", using: :btree
- add_index "notes", ["original_discussion_id"], name: "index_notes_on_original_discussion_id", using: :btree
add_index "notes", ["project_id", "noteable_type"], name: "index_notes_on_project_id_and_noteable_type", using: :btree
add_index "notes", ["updated_at"], name: "index_notes_on_updated_at", using: :btree