mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-09-11 20:57:44 +00:00
14 lines
343 B
Ruby
14 lines
343 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class RemoveIndexUsersOnRememberToken < ActiveRecord::Migration[6.1]
|
||
|
disable_ddl_transaction!
|
||
|
|
||
|
def up
|
||
|
remove_index :users, name: :index_users_on_remember_token
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
add_index :users, :remember_token, algorithm: :concurrently, unique: true, name: :index_users_on_remember_token
|
||
|
end
|
||
|
end
|