Table plurals and primary keys

March 31st, 2006 by papillon

This is how one redefines the table name and primary key column:

class MyTableName < ActiveRecord::Base
  set_table_name 'my_other_table_name'
  set_primary_key 'MyPrimaryKeyColumn'