This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/db/migrate/20220129231143_disable_sign...

10 lines
221 B
Ruby
Raw Permalink Normal View History

2022-01-29 15:43:08 -08:00
class DisableSignInTokenByDefault < ActiveRecord::Migration[6.1]
def up
change_column_default :users, :skip_sign_in_token, true
end
def down
change_column_default :users, :skip_sign_in_token, nil
end
end