Ruby/Rails - Remove ActiveAdmin from my application

ChrisWesAllen picture ChrisWesAllen · Oct 17, 2011 · Viewed 15.6k times · Source

I had a good time playing with Active Admin the administrative framework within my application. http://activeadmin.info/

When I installed it I ran

rails g active_admin:install
rake db:migrate
rails g active_admin:resource product

and it generated alot of migrations and code within my application.

My question if I would like to go back and have everything that active_admin put into my application taken out, how would i do so?

Is there one 'rails active_admin:uninstall' command to get rid of everything or do I have to manually create migrations to delete all the tables and search through my code to see what it added?

Answer

tomciopp picture tomciopp · Oct 17, 2011

If you run the following code it should destroy active admin:

rails destroy active_admin:install
rails destroy active_admin:resource product