scinote-web/db/migrate/20200622140843_add2fa_to_users.rb

11 lines
253 B
Ruby
Raw Normal View History

2020-06-24 22:23:52 +08:00
# frozen_string_literal: true
class Add2faToUsers < ActiveRecord::Migration[6.0]
def change
change_table :users, bulk: true do |t|
2020-06-29 16:42:19 +08:00
t.boolean :two_factor_auth_enabled, default: false, null: false
2020-06-24 22:23:52 +08:00
t.string :otp_secret
end
end
end