Forum: Rails deployment Legacy Database

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2ae59ce11de813dae1df728d80b748d5?d=identicon&s=25 Shanon Clemmons (dominatorsc)
on 2007-03-20 19:51
How does one (a complete newbie) model and scafford an legacy database
remotely. The tables appear to be in the correct form of pural names and
the connection is correct

any help would be greatfully
71af5d93d5666f58c0f3d7fc7bd1b528?d=identicon&s=25 Ericson Smith (Guest)
on 2007-03-20 21:04
(Received via mailing list)
Not being a huge expert myself, here's what I would do:

1. Setup model files (by hand for each table) app/model/table.rb
2. Set any naming exceptions in each model file (if columns are not
well named for example)
3. Setup your database config to point to your remote database

Now you can generate scaffolds to deal with it. I'd just loadup the
console (script/console) first, and do some test queries to see if you
can connect. Eg:

# script/console
# > Table.find(:first)


- Erison Smith
This topic is locked and can not be replied to.