mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Add lockable to migration.
This commit is contained in:
parent
27c4280eca
commit
0f7b311171
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue