rails/activerecord/test/models/vehicle.rb

8 lines
149 B
Ruby

class Vehicle < ActiveRecord::Base
self.abstract_class = true
default_scope -> { where("tires_count IS NOT NULL") }
end
class Bus < Vehicle
end