aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/subscriber.rb
blob: a820329003fd0ac04ebe066d3c84a9372c6256a6 (plain) (blame)
1
2
3
4
5
6
7
8
class Subscriber < ActiveRecord::Base
  self.primary_key = "nick"
  has_many :subscriptions
  has_many :books, through: :subscriptions
end

class SpecialSubscriber < Subscriber
end