# See http://doc.gitlab.com/ce/development/migration_style_guide.html# for more information on how to write migrations for GitLab.classAddIndexOnCiBuildsUserId<ActiveRecord::MigrationincludeGitlab::Database::MigrationHelpers# Set this constant to true if this migration requires downtime.DOWNTIME=falsedisable_ddl_transaction!defupadd_concurrent_index:ci_builds,:user_idenddefdownremove_concurrent_index:ci_builds,:user_idifindex_exists?(:ci_builds,:user_id)endend