Sha256: 2d7eb6ac858ac4e70d519f47520f01ecdc55eb7b464e827cb866334d88cc2c95
Contents?: true
Size: 930 Bytes
Versions: 5
Compression:
Stored size: 930 Bytes
Contents
class Classification < ActiveRecord::Base belongs_to :classification_type belongs_to :manifestation, touch: true, optional: true validates_associated :classification_type validates_presence_of :category, :classification_type searchable do text :category, :note integer :classification_type_id end strip_attributes only: [:category, :url] paginates_per 10 end # == Schema Information # # Table name: classifications # # id :integer not null, primary key # parent_id :integer # category :string not null # note :text # classification_type_id :integer not null # created_at :datetime # updated_at :datetime # lft :integer # rgt :integer # manifestation_id :integer # url :string # label :string #
Version data entries
5 entries across 5 versions & 1 rubygems