Removing Devise Model?

2,138 views
Skip to first unread message

pete

unread,
Nov 20, 2010, 12:46:48 PM11/20/10
to Devise
Hi-

I just started using devise and so far it's been great. Today I added
additional functionality to support an admin role but after reading
some posts in this group, I realized that I don't think I need this
additional role and would like to remove it.

Is there a devise way for rolling back all of the additional
functionality for adding the admin role as defined here?

https://github.com/plataformatec/devise/wiki/How-To:-Add-an-Admin-role

I realized that really all I needed was the attribute of is_admin
added to my user model.

Thanks!

Carlos Antonio da Silva

unread,
Nov 21, 2010, 8:07:44 AM11/21/10
to plataforma...@googlegroups.com
You can run the destroy generator: rails destroy devise Admin.
This would do the best to revert everything, but if you've already run your migrations, you'd have to do the manual work to rollback them.
--
At.
Carlos A. da Silva

pete

unread,
Nov 21, 2010, 2:59:09 PM11/21/10
to Devise
Great, thanks!

On Nov 21, 6:07 am, Carlos Antonio da Silva
Reply all
Reply to author
Forward
0 new messages