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