Sha256: 03f3217af68c2463e63514c788c751de3c23a40067023c63a8b2de6656977b6b

Contents?: true

Size: 336 Bytes

Versions: 46

Compression:

Stored size: 336 Bytes

Contents

class AddBruteForceProtectionToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :failed_logins_count, :integer, :default => 0
    add_column :users, :lock_expires_at, :datetime, :default => nil
  end

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

Version data entries

46 entries across 25 versions & 1 rubygems

Version Path
sorcery-0.7.8 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.7 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.6 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.5 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.4 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.3 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.2 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.1 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.0 spec/sinatra_modular/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.0 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.7.0 spec/sinatra/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.6.1 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.6.1 spec/sinatra/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.6.1 spec/sinatra_modular/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.6.0 spec/sinatra_modular/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.6.0 spec/sinatra/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.6.0 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.5.30 spec/sinatra/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.5.30 spec/sinatra_modular/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb
sorcery-0.5.30 spec/rails3/db/migrate/brute_force_protection/20101224223626_add_brute_force_protection_to_users.rb