scinote-web/db/migrate/20200622140843_add2fa_to_users.rb
2020-06-29 10:42:19 +02:00

10 lines
253 B
Ruby

# frozen_string_literal: true
class Add2faToUsers < ActiveRecord::Migration[6.0]
def change
change_table :users, bulk: true do |t|
t.boolean :two_factor_auth_enabled, default: false, null: false
t.string :otp_secret
end
end
end