Support alternate primary keys set on ActiveRecord with `self.primary_key = X`