debian-mirror-gitlab/db/migrate/20170402231018_remove_index_for_users_current_sign_in_at.rb

21 lines
537 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
# rubocop:disable RemoveIndex
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-09-10 17:25:29 +05:30
remove_concurrent_index :users, :current_sign_in_at
2017-08-17 22:00:37 +05:30
end
def down
add_concurrent_index :users, :current_sign_in_at
end
end