aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/subscriber.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/subscriber.rb')
-rw-r--r--activerecord/test/models/subscriber.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/models/subscriber.rb b/activerecord/test/models/subscriber.rb
new file mode 100644
index 0000000000..b21969ca2d
--- /dev/null
+++ b/activerecord/test/models/subscriber.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class Subscriber < ActiveRecord::Base
+ self.primary_key = "nick"
+ has_many :subscriptions
+ has_many :books, through: :subscriptions
+end
+
+class SpecialSubscriber < Subscriber
+end