Sha256: 268cad0385950b4fb4a5c929466ce4f1c4cdb14f94f4728227eafa338fb77c44

Contents?: true

Size: 326 Bytes

Versions: 5

Compression:

Stored size: 326 Bytes

Contents

class AddEncryptedColumnsToUser < ActiveRecord::Migration
  def change
    add_column :users, :encrypted_otp_secret_key, :string
    add_column :users, :encrypted_otp_secret_key_iv, :string
    add_column :users, :encrypted_otp_secret_key_salt, :string

    add_index :users, :encrypted_otp_secret_key, unique: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
two_factor_authentication-2.1.1 spec/rails_app/db/migrate/20151224171231_add_encrypted_columns_to_user.rb
two_factor_authentication-2.1.0 spec/rails_app/db/migrate/20151224171231_add_encrypted_columns_to_user.rb
two_factor_authentication-2.0.1 spec/rails_app/db/migrate/20151224171231_add_encrypted_columns_to_user.rb
two_factor_authentication-2.0.0 spec/rails_app/db/migrate/20151224171231_add_encrypted_columns_to_user.rb
two_factor_authentication-1.1.5 spec/rails_app/db/migrate/20151224171231_add_encrypted_columns_to_user.rb