Sha256: a4e4982aa311339292c7d1044c25d286e9e01017afa8ea769ddab32ae0f41bd0
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
class SorceryBruteForceProtection < <%= migration_class_name %> def change add_column :<%= model_class_name.tableize %>, :failed_logins_count, :integer, default: 0 add_column :<%= model_class_name.tableize %>, :lock_expires_at, :datetime, default: nil add_column :<%= model_class_name.tableize %>, :unlock_token, :string, default: nil add_index :<%= model_class_name.tableize %>, :unlock_token end end
Version data entries
3 entries across 3 versions & 1 rubygems