gregbell/active_admin — Issue #1074: Move to production fails because of missing table when trying to run rake db:migrate
Author: robotex82
Created: 2012-02-26 18:02:14+00:00
State: open

When moving an appliation to production. following situation happens:

1. You move the code with new admin files in app/admin to production
2. You try to run rake db:migrate to create tables for the new models.
3. It blows up, trying to run rake db:migrate because of missing tables in app/admin/whatever.rb

I had to move the app/admin folder away, run the migrations and move it back.

Coclusion:

The app/admin files should not be requires when running rake db:migrate OR requiring the app/admin files should not require existing tables.

Best regards,

Roberto