class StringKeyObject < ActiveRecord::Base self.primary_key = :id end