Topic: Cannot create/migrate db (undefined method `database_authenticatable')

I cloned a git repository and now try to create and migrate the database.


I receive the following message when trying to create the database:

$ bundle exec rake db:create --trace
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
Error in my_thread_global_end(): 1 threads didn't exit

However, the databases are created.


I then receive the following message when trying to migrate the database:

$ bundle exec rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate
==  DeviseCreateUsers: migrating ==============================================
-- create_table(:users)
rake aborted!
An error has occurred, all later migrations canceled:
undefined method `database_authenticatable' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x622b918>
m:/Aptana/Smardo/db/migrate/20120312203625_devise_create_users.rb:5:in `block in up'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:161:in `create_table'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/connection_adapters/mysql2_adapter.rb:480:in `create_table'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:447:in `block in method_missing'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:422:in `block in say_with_time'
c:/Ruby192/lib/ruby/1.9.1/benchmark.rb:295:in `measure'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:422:in `say_with_time'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:442:in `method_missing'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:332:in `method_missing'
m:/Aptana/Smardo/db/migrate/20120312203625_devise_create_users.rb:4:in `up'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:356:in `up'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:394:in `block (2 levels) in migrate'
c:/Ruby192/lib/ruby/1.9.1/benchmark.rb:295:in `measure'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:394:in `block in migrate'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:185:in `with_connection'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:375:in `migrate'
c:in `migrate'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:687:in `block (2 levels) in migrate'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:744:in `call'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:744:in `ddl_transaction'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:686:in `block in migrate'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:671:in `each'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:671:in `migrate'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:549:in `up'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/migration.rb:530:in `migrate'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.4/lib/active_record/railties/databases.rake:161:in `block (2 levels) in <top (required)>'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
c:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
c:/Ruby192/bin/rake:19:in `load'
c:/Ruby192/bin/rake:19:in `<main>'
Tasks: TOP => db:migrate
Error in my_thread_global_end(): 1 threads didn't exit 

Any ideas?


Cheers, Mike