From 7071f9bf3e131a7a668922ee450da529f1866b6f Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 11 Nov 2019 15:06:42 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../20191105140942_add_indices_to_abuse_reports.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 db/post_migrate/20191105140942_add_indices_to_abuse_reports.rb (limited to 'db/post_migrate') diff --git a/db/post_migrate/20191105140942_add_indices_to_abuse_reports.rb b/db/post_migrate/20191105140942_add_indices_to_abuse_reports.rb new file mode 100644 index 00000000000..2b2d04e8ccc --- /dev/null +++ b/db/post_migrate/20191105140942_add_indices_to_abuse_reports.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddIndicesToAbuseReports < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_concurrent_index :abuse_reports, :user_id + end + + def down + remove_concurrent_index :abuse_reports, :user_id + end +end -- cgit v1.2.1