mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-11-04 01:15:36 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			309 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			309 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
class AddLockableToUser < ActiveRecord::Migration
 | 
						|
  def change
 | 
						|
    change_table :users do |t|
 | 
						|
      t.integer  :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
 | 
						|
      t.string   :unlock_token # Only if unlock strategy is :email or :both
 | 
						|
      t.datetime :locked_at
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |