1 2 3 4 5
# frozen_string_literal: true class StringKeyObject < ActiveRecord::Base self.primary_key = :id end