On Oct 18, 8:55 pm, Dale Ackerman
<dale8...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have a situation where I have some legacy tables that have what I
> will call conditional relations. One table is a log and has actions
> and action_notes columns if the action is a certain number(value) the
> the contents of the action_notes will be a foreign key to another
> table but then it can actually be a note for other actions.... Hope
> that makes sense. So whats the best rails approach?
Unless those log tables are still being written to, I''d typically just
write a migration to actually sort out the mess into a more standard
layout and then work from there.
Oh, and LART the daylights outta whoever thought *that* design was a
good idea. ;)
--Matt Jones
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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.