1 2 3 4 5
class Pet < ActiveRecord::Base set_primary_key :pet_id belongs_to :owner, :touch => true has_many :toys end