Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20150327223628_add_devise_two_factor_to_users.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eccb0123e779cd6172440af2a03bc5f28e75ccb6 (plain)
1
2
3
4
5
6
7
8
9
# rubocop:disable all
class AddDeviseTwoFactorToUsers < ActiveRecord::Migration
  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, :otp_required_for_login, :boolean
  end
end