mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-18 22:14:46 +00:00
* Remove leftover database columns from Devise::Models::Rememberable * Update fix-duplication maintenance script * Improve errors/warnings in the fix-duplicates maintenance script
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
|