associations

If all your tables follow the _id format you can configure this at the app level with a change in environment.rb. Add this at the bottom of the file:

ActiveRecord::Base.primary_key_prefix_type = :table_name_with_underscore

If some tables have “id” and others are _id (granted that’s a messy way to design a schema) you can do this:

class Category < ActiveRecord::Base
self.primary_key = “category_id”
end

Henry
http://www.henrywagner.org/