在初始设置后,我找不到如何添加新的设计模块(或删除)的文档.
change_table(:users) do |t| t.lockable :lock_strategy => :Failed_attempts,:unlock_strategy => :both end
它添加的字段是:
t.integer "Failed_attempts",:default => 0 t.string "unlock_token" t.datetime "locked_at"