aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/engine.rb
blob: eada171f6a6aa1be3284cd751421764ff8c90bad (plain) (blame)
1
2
3
class Engine < ActiveRecord::Base
  belongs_to :my_car, class_name: "Car", foreign_key: "car_id",  counter_cache: :engines_count
end