Sha256: abf65861c28c7a85432ca26d6321f1842fcf0744880d98ba5ec31647abe10c96

Contents?: true

Size: 312 Bytes

Versions: 4

Compression:

Stored size: 312 Bytes

Contents

class AddOtpFields < ActiveRecord::Migration[6.0]
  def up
    add_column :administrators, :otp_secret_key, :string
    add_column :administrators, :otp_module, :boolean, default: false
  end

  def down
    remove_column :administrators, :otp_module
    remove_column :administrators, :otp_secret_key
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-auth-otp-0.2.1 lib/generators/trestle/auth/otp/install/templates/migration.rb
trestle-auth-otp-0.2.0 lib/generators/trestle/auth/otp/install/templates/migration.rb
trestle-auth-otp-0.1.1 lib/generators/trestle/auth/otp/install/templates/migration.rb
trestle-auth-otp-0.1.0 lib/generators/trestle/auth/otp/install/templates/migration.rb