Search code examples
ruby-on-railsrake

Don't know how to build task 'db:create'


I'm migrating from a sqllite db to mysql2. I have mysql running (and changed database.yml) but for some reason my rake db:create comes back with:

rake aborted!
Don't know how to build task 'db:create'

When I do a: rake -T, no db tasks appear in the list.

I'm on Rails 3.2.9

What obvious thing am I missing here?


Solution

  • Just figured it out. Someone had commented out the following in application.rb:

    require 'rails/all'
    

    Once put back rake -T returns the db tasks.