plataformatec/devise — Issue #1575: Problem with routes and migration
Author: tommyblue
Created: 2012-01-17 14:45:33+00:00
State: open

Hello, I can't find the solution for this strange error:
I'm using devise with Rails 3.1. I've installed the devise gem, initializated it and created the model User. In config/routes.rb I put "devise for :users" then I pushed everything here an GitHub: https://github.com/tommyblue/ScoutFirenze-Liste

Now, if I clone the repo in a new pc and try to migrate (or simply "rake routes"), I get only:

rake aborted!
Mysql2::Error: Table 'scoutfirenze_liste_development.role_types' doesn't exist: SHOW FIELDS FROM `role_types`

Tasks: TOP => routes => environment
(See full trace by running task with --trace)

If I comment out the line "devise for :users" in config/routes.rb everything works well.
If I try all this in a machine with the db created my hand, it works well.

Am i missing something?
Thanks