class TestBar < ActiveRecord::Base
Establishes the connection to the database. Accepts a hash as input where the :adapter key must be specified with the name of a database adapter (in lower-case) example for regular databases (MySQL, Postgresql, etc):
set_table_name – Sets the table name. If the value is nil or false then the value returned by the given block is used.
set_primary_key – Sets the name of the primary key column to use to the given value, or (if the value is nil or false) to the value returned by the given block.
HUGE PROPS TO http://railsforum.com/viewtopic.php?pid=148737