aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/minivan.rb
blob: d9d331798a0daa90f94a0f0a65921ba9fa9553a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

class Minivan < ActiveRecord::Base
  self.primary_key = :minivan_id

  belongs_to :speedometer
  has_one :dashboard, through: :speedometer

  attr_readonly :color
end