Friday, January 7, 2011

[Rails] Re: Task with a legacy schema nightmare.

TImbeTImbe wrote in post #973079:
> I have a the great task of migrating the backend of a large multi
> client application to Rails!
>
> I'm pumped for the opportunity to drop PHP, but a LOT of table schemas
> have a very "non-rails" setup. The main hangup is any image urls for
> the site live in a large monolithic table with a column to designate
> the other tables name and it's primary key that has an image.
>
> Unfortunately I can't change the schema.

Then either decline the project or create a REST service that your Rails
app can read with ActiveResource. (I'd probably decline the project --
unchangeable schemes and multi-client DBs without an abstraction layer
are recipes for disaster.)

> How can I map paperclip or
> carrierwave to write the relative paths to rows like "small", "med",
> "lrg", "original" in this images table?

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

Sent from my iPhone

--
Posted via http://www.ruby-forum.com/.

--
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


Real Estate