logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20170127165745_add_devise_two_factor_to_users.rb (365B)


  1. class AddDeviseTwoFactorToUsers < ActiveRecord::Migration[5.0]
  2. def change
  3. add_column :users, :encrypted_otp_secret, :string
  4. add_column :users, :encrypted_otp_secret_iv, :string
  5. add_column :users, :encrypted_otp_secret_salt, :string
  6. add_column :users, :consumed_timestep, :integer
  7. add_column :users, :otp_required_for_login, :boolean
  8. end
  9. end