diaspora/db/migrate/20220227215443_remove_authentication_token_from_users.rb
Benjamin Neff 36778dbeac
Remove /user/auth_token route, this was a leftover from the chat
Also remove authentication_token from database
2022-02-27 23:06:24 +01:00

8 lines
307 B
Ruby

# frozen_string_literal: true
class RemoveAuthenticationTokenFromUsers < ActiveRecord::Migration[5.2]
def change
remove_index :users, column: :authentication_token, name: :index_users_on_authentication_token, unique: true
remove_column :users, :authentication_token, :string, limit: 30
end
end