Please forgive my ignorance, am pretty new to rails.
Am creating an application on rails framework that will use a legacy
database with about 119 tables and 121 sequences that define the primary
The database is ready now and i need to hook it to active:record:Base
i have installed these two gems:
My YML file reads like this:
Warning: The database defined as ‘test’ will be erased and
re-generated from your development database when you run ‘rake’.
Do not set this db to the same as development or production.
i then wrote a configuration file that stops pluralization of the
i generated a model scaffold to “test the waters” and lol and behold! it
could not connect to through active:record.
Please can someone point me to a useful resource to guide me on how to
accomplish this. All resources seem to use mysql and am only finding no
information on connecting to postgres legacy databases.
How do i map the recquired id field to my user-defined primary key
generically named Tablename_id?
What configuration details am i missing?