Sha256: a23f4b123e6d4b946dd523a651848d3f07b5cbff32420a044be8f08a2688e3ce
Contents?: true
Size: 727 Bytes
Versions: 9
Compression:
Stored size: 727 Bytes
Contents
class SubjectHeadingTypeHasSubject < ActiveRecord::Base belongs_to :subject #, :polymorphic => true belongs_to :subject_heading_type validates_presence_of :subject, :subject_heading_type validates_associated :subject, :subject_heading_type validates_uniqueness_of :subject_id, :scope => :subject_heading_type_id def self.per_page 10 end end # == Schema Information # # Table name: subject_heading_type_has_subjects # # id :integer not null, primary key # subject_id :integer not null # subject_type :string(255) # subject_heading_type_id :integer not null # created_at :datetime # updated_at :datetime #
Version data entries
9 entries across 9 versions & 1 rubygems