aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/categorization.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/categorization.rb')
-rw-r--r--activerecord/test/models/categorization.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/activerecord/test/models/categorization.rb b/activerecord/test/models/categorization.rb
index 10594323ff..b3fc29fa15 100644
--- a/activerecord/test/models/categorization.rb
+++ b/activerecord/test/models/categorization.rb
@@ -2,4 +2,13 @@ class Categorization < ActiveRecord::Base
belongs_to :post
belongs_to :category
belongs_to :author
-end \ No newline at end of file
+end
+
+class SpecialCategorization < ActiveRecord::Base
+ self.table_name = 'categorizations'
+
+ default_scope where(:special => true)
+
+ belongs_to :author
+ belongs_to :category
+end