Sha256: dffc6d542bdcf592b11e9c9db6edaaf83441f3f2e566637b98bec1a617b095a6

Contents?: true

Size: 427 Bytes

Versions: 21

Compression:

Stored size: 427 Bytes

Contents

class SorceryBruteForceProtection < ActiveRecord::Migration
  def self.up
    add_column :users, :failed_logins_count, :integer, default: 0
    add_column :users, :lock_expires_at, :datetime, default: nil
    add_column :users, :unlock_token, :string, default: nil
  end

  def self.down
    remove_column :users, :lock_expires_at
    remove_column :users, :failed_logins_count
    remove_column :users, :unlock_token
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
raygun-0.0.34 rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.34.pre2 rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.33 rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.32 rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.31 rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.30 rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.29 rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.28 rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.27 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.26 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.25 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.24 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.23 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.22 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.21 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.18 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.17 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.16 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.15 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb
raygun-0.0.14 app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb