Ruby / Rails - 从我的应用程序中删除ActiveAdmin [英] Ruby/Rails - Remove ActiveAdmin from my application

查看:172
本文介绍了Ruby / Rails - 从我的应用程序中删除ActiveAdmin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用Active Admin管理框架玩得很开心。
http://activeadmin.info/

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

当我安装它时,我跑了

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.

我的问题是,如果我想返回并将active_admin放入我的应用程序中的所有内容删除,我该怎么做?

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?

是否有一个'rails active_admin:uninstall'命令可以删除所有内容,或者是否必须手动创建迁移才能删除所有表并搜索我的代码以查看它添加了什么?

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?

推荐答案

如果您运行以下代码,它应该销毁活动管理员:

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

rails destroy active_admin:install
rails destroy active_admin:resource product

这篇关于Ruby / Rails - 从我的应用程序中删除ActiveAdmin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆