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