aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/aircraft.rb
blob: 4fdea46cf765780744a93d8400d0f399286833ce (plain) (tree)
1
2
3
4
5
6
7

                             
                                   
                                    
                                          
                                  
   
# frozen_string_literal: true

class Aircraft < ActiveRecord::Base
  self.pluralize_table_names = false
  has_many :engines, foreign_key: "car_id"
  has_many :wheels, as: :wheelable
end