aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/vehicle.rb
blob: 855bc4e325c7ba2e03cc2fc7b5d12c9311f32ac0 (plain) (blame)
1
2
3
4
5
6
7
class Vehicle < ActiveRecord::Base
  self.abstract_class = true
  default_scope -> { where("tires_count IS NOT NULL") }
end

class Bus < Vehicle
end