aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/subscriber.rb
blob: 76e85a0cd3aefa51dd29ec45e139b6002b45f686 (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