I'm assuming that you have already setup your model and you have already setup the primary key as Mahatmanich said.
set.table_name="schema.table"
set.primary_key="legacy_id"
I also set aliases for all of my legacy table fields so that they are more readable within my code base.
alias :alias_name, :old_field_name
Usually with dealing with legacy databases the relationships aren't as straight forward as having a single primary key. Here are a few examples;
belongs_to :the_other_table,
:class_name => 'TheOtherClassName',
:primary_key => 'key_in_other_table',
:foreign_key => 'my_key'
has_many :yet_another_tables,
:class_name => "YetAnotherClassName",
:primary_key => 'my_key_2',
:foreign_key => 'key_in_yet_another_table',
:conditions => ['something = ?', true]