arsduo
unread,Dec 11, 2009, 11:49:00 AM12/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Devise
Hi everyone,
First of all, thanks for a great gem. I'm really liking Devise and am
excited to implement it both on a new site I'm building and an earlier
one already live....which brings me to my question:
Right now it doesn't seem like there's an easy way to add Devise to an
existing model (e.g. to an existing site). The only way I can see to
do this is to generate a fake model to identify the columns needed and
then create a new migration by hand to add those to the previous
model. That seems clumsy, though, and will generate a number of extra
files.
Are there any plans to create a devise_update generator, or something
along that line? It could be as simple as changing create_table to
change_table in the migration generator. The only problem with that
simple an approach is that you'd throw errors if the model already had
columns of the same name (such as password, a likely problem). If
there are no plans for this, I'll take a stab at it when I get to
working on that existing site, and will update with what I create.
Thanks!
Alex