mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-26 18:35:11 +00:00
10 lines
365 B
Ruby
10 lines
365 B
Ruby
class AddDeviseTwoFactorToUsers < ActiveRecord::Migration[5.0]
|
|
def change
|
|
add_column :users, :encrypted_otp_secret, :string
|
|
add_column :users, :encrypted_otp_secret_iv, :string
|
|
add_column :users, :encrypted_otp_secret_salt, :string
|
|
add_column :users, :consumed_timestep, :integer
|
|
add_column :users, :otp_required_for_login, :boolean
|
|
end
|
|
end
|