mirror of https://github.com/fspc/BikeShed-1.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
309 B
9 lines
309 B
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
|
|
|