aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/cat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/cat.rb')
-rw-r--r--activerecord/test/models/cat.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/models/cat.rb b/activerecord/test/models/cat.rb
new file mode 100644
index 0000000000..dfdde18641
--- /dev/null
+++ b/activerecord/test/models/cat.rb
@@ -0,0 +1,10 @@
+class Cat < ActiveRecord::Base
+ self.abstract_class = true
+
+ enum gender: [:female, :male]
+
+ default_scope -> { where(is_vegetarian: false) }
+end
+
+class Lion < Cat
+end