Sha256: 532b6830af9f3c6880b85dbe5076c1fa0239a8f84a1a37ca3363380bd74dc398

Contents?: true

Size: 243 Bytes

Versions: 9

Compression:

Stored size: 243 Bytes

Contents

class AddAuthenticateBruteForceToUsers < ActiveRecord::Migration
  def change
    add_column :<%= table_name %>, :failed_logins_count, :integer, default: 0
    add_column :<%= table_name %>, :lock_expires_at, :datetime, default: nil
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
authenticate-0.6.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.5.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.4.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.3.3 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.3.2 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.3.1 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.3.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.2.3 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.2.2 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb