aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/subscriber.rb
blob: b21969ca2d6fe13d7818aac11b0a98a0c02f79f0 (plain) (tree)
1
2
3
4
5
6
7
8
9

                             
                                     
                           
                         
                                          
   

                                    
   
# 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