aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/vehicle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/vehicle.rb')
-rw-r--r--activerecord/test/models/vehicle.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/models/vehicle.rb b/activerecord/test/models/vehicle.rb
new file mode 100644
index 0000000000..ef26170f1f
--- /dev/null
+++ b/activerecord/test/models/vehicle.rb
@@ -0,0 +1,7 @@
+class Vehicle < ActiveRecord::Base
+ self.abstract_class = true
+ default_scope -> { where("tires_count IS NOT NULL") }
+end
+
+class Bus < Vehicle
+end \ No newline at end of file