Sha256: 2e804d0944a62cc331ce4e7402d7767c5d438b33cf1208b2e2485fb65c6ca652
Contents?: true
Size: 1.2 KB
Versions: 9
Compression:
Stored size: 1.2 KB
Contents
class Subject < ActiveRecord::Base belongs_to :manifestation, touch: true belongs_to :subject_type belongs_to :subject_heading_type belongs_to :required_role, class_name: 'Role', foreign_key: 'required_role_id' validates_associated :subject_type, :subject_heading_type validates_presence_of :term, :subject_type_id, :subject_heading_type_id searchable do text :term time :created_at integer :required_role_id end strip_attributes only: :term paginates_per 10 end # == Schema Information # # Table name: subjects # # id :integer not null, primary key # parent_id :integer # use_term_id :integer # term :string # term_transcription :text # subject_type_id :integer not null # scope_note :text # note :text # required_role_id :integer default(1), not null # lock_version :integer default(0), not null # created_at :datetime # updated_at :datetime # deleted_at :datetime # url :string # manifestation_id :integer # subject_heading_type_id :integer #
Version data entries
9 entries across 9 versions & 1 rubygems