mastodon/db/migrate/20170127165745_add_devise_two_factor_to_users.rb
2023-11-06 16:15:48 +00:00

14 lines
408 B
Ruby

# frozen_string_literal: true
class AddDeviseTwoFactorToUsers < ActiveRecord::Migration[5.0]
def change
change_table(:users, bulk: true) do |t|
t.column :encrypted_otp_secret, :string
t.column :encrypted_otp_secret_iv, :string
t.column :encrypted_otp_secret_salt, :string
t.column :consumed_timestep, :integer
t.column :otp_required_for_login, :boolean
end
end
end