Sha256: 0b12850e6e9189836a7c97ffd29da0916cab5ee8c7e4f7672db9c6a9c99ac83d
Contents?: true
Size: 463 Bytes
Versions: 17
Compression:
Stored size: 463 Bytes
Contents
class AddBruteForceProtectionToUsers < ActiveRecord::CompatibleLegacyMigration.migration_class 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, :unlock_token remove_column :users, :lock_expires_at remove_column :users, :failed_logins_count end end
Version data entries
17 entries across 17 versions & 1 rubygems