The `$rake db:*` commands and initializing a Discourse instance

I think you need to db:create first, then migrate.