I am using rails 3 and Devise 1.3.4 for authentication in my app.
After generating the user model, I try to add more devise modules to my devise_create_users.rb migration file, but I get the error:
undefined method `timeoutable' for ActiveRecord::ConnectionAdapters::TableDefinition.
However, adding other modules like :confirmable work just fine.
devise_create_user.rb:
create_table(:users) do |t|
t.database_authenticatable :null => false
t.recoverable
t.rememberable
t.trackable
t.timeoutable
# t.encryptable
t.confirmable
# t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
# t.token_authenticatable
t.timestamps
end
My user model :
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable, :confirmable , :timeoutable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me
end
Any ideas what the error could be?