Sha256: 450ed2f1ec95a32d506ad5c34677efe80d35712a8be8e9942f55bd1c08bc2488
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
class Subject < ActiveRecord::Base belongs_to :manifestation, touch: true, optional: 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
5 entries across 5 versions & 1 rubygems