gregbell/active_admin — Issue #753: Install isn't creating `admin_users` table.
Author: coreyward
Created: 2011-11-15 20:56:37+00:00
State: open

I'm trying to install ActiveAdmin on a Rails 3.1 app following the guide.

# Gemfile
gem 'activeadmin'
gem 'sass-rails'
gem 'meta_search, '>= 1.1.0.pre'

Followed by:

$ bundle
$ rails g active_admin:install
$ rake db:migrate

And I get the first 2 migrations to run successfully, but the third fails:

== AddDeviseToAdminUsers: migrating ==========================================
-- change_table(:admin_users)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql2::Error: Table 'myapp_development.admin_users' doesn't exist: ALTER TABLE `admin_users` ADD `email` varchar(255) DEFAULT '' NOT NULL

Tasks: TOP => db:migrate

There's nothing *creating* the `admin_users` table, though there is a migration that appears to get created and then removed in the `install` task called `[datestamp]_add_devise_to_admin_users.rb`.