aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/engine.rb
blob: 751c3f02d18730be1fd9d894026fcee54843418a (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