Sha256: 4793208578752d09f747c6dc15e5926fea796c7bcba76826cf0a75a68f4eae55
Contents?: true
Size: 563 Bytes
Versions: 6
Compression:
Stored size: 563 Bytes
Contents
class DeviseAuthyAddToAdmins < ActiveRecord::Migration def self.up change_table :admins do |t| t.string :authy_id t.datetime :last_sign_in_with_authy t.boolean :authy_enabled, :default => false t.integer :failed_attempts, :default => 0 t.string :unlock_token t.datetime :locked_at end add_index :admins, :authy_id end def self.down change_table :admins do |t| t.remove :authy_id, :last_sign_in_with_authy, :authy_enabled, :failed_attempts, :unlock_token, :locked_at end end end
Version data entries
6 entries across 6 versions & 1 rubygems