Sha256: e9a6f6a3c513ff85e5767baeed323b7a44fe58fccd1b3c8712bd6e8e9fd8ddb5

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

class AddAuthenticateBruteForceToUsers < ActiveRecord::Migration<%= migration_version %>
  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

5 entries across 5 versions & 1 rubygems

Version Path
authenticate-0.7.3 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.7.2 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.7.1 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.7.0 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb
authenticate-0.6.1 lib/generators/authenticate/install/templates/db/migrate/add_authenticate_brute_force_to_users.rb