arsduo
no leída,11 dic 2009, 11:49:0011/12/09Iniciar sesión para responder al autor
Iniciar sesión para reenviar
No tienes permiso para eliminar mensajes de este grupo
Mostrar el mensaje original
Las direcciones de correo electrónico de este grupo son anónimas o necesitas el permiso para ver las direcciones de correo electrónico de los miembros para poder ver el mensaje original
a 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