aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/minivan.rb
blob: e9b05dadf2829dfb7fc769e22b40df8f210303ae (plain) (blame)
1
2
3
4
5
6
7
8
class Minivan < ActiveRecord::Base
  self.primary_key = :minivan_id

  belongs_to :speedometer
  has_one :dashboard, through: :speedometer

  attr_readonly :color
end