Re: [Rails] Re: Changing tablename without changing modelname
On 9 December 2010 12:08, Basti Schenk <lists@ruby-forum.com> wrote:
> I do this: "I suggest reverting to the manual method for
> setting size_id, by providing a number for it and for the entries in
> the sizes table. "
>
> Its not nice but it works^^
Fixtures are not nice even when they work. Maintenance is a
nightmare. As soon as you have got it all working again then move
over to Factories. The time you have wasted with this problem would
have been enough to have made the switch.
Finally just a note about the changes you made, you said you adjusted
the previous migrations so that running from scratch gave you the new
table names. A better way would just have been to add a new migration
that renamed the table.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home