Sha256: 1d33be1cf1703ca1a76ff924dd2f22ae0c45ea2b745b7f24db551e55efdf41ba
Contents?: true
Size: 439 Bytes
Versions: 15
Compression:
Stored size: 439 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 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
15 entries across 15 versions & 3 rubygems