2017-04-03 22:41:43 +00:00
|
|
|
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
|
|
|
|
# for more information on how to write migrations for GitLab.
|
|
|
|
|
2017-04-06 11:47:40 +00:00
|
|
|
# rubocop:disable RemoveIndex
|
2017-04-03 22:41:43 +00:00
|
|
|
class RemoveIndexForUsersCurrentSignInAt < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
# Set this constant to true if this migration requires downtime.
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2017-05-25 11:10:34 +00:00
|
|
|
remove_concurrent_index :users, :current_sign_in_at
|
2017-04-03 22:41:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
add_concurrent_index :users, :current_sign_in_at
|
|
|
|
end
|
|
|
|
end
|