Add lockable to migration.
This commit is contained in:
parent
27c4280eca
commit
0f7b311171
|
@ -189,7 +189,7 @@ module Devise
|
|||
#
|
||||
def self.add_module(module_name, options = {})
|
||||
ALL << module_name
|
||||
options.assert_valid_keys(:strategy, :model, :controller, :route, :flash, :passive_strategy)
|
||||
options.assert_valid_keys(:strategy, :model, :controller, :route, :flash)
|
||||
|
||||
config = {
|
||||
:strategy => STRATEGIES,
|
||||
|
|
|
@ -6,7 +6,7 @@ class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
|
|||
t.recoverable
|
||||
t.rememberable
|
||||
t.trackable
|
||||
# t.lockable :unlock_strategy => :<%= Devise.unlock_strategy %>
|
||||
# t.lockable :lock_strategy => :<%= Devise.lock_strategy %>, :unlock_strategy => :<%= Devise.unlock_strategy %>
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue