Sha256: dc24b79d4805cbac3a5025eb45822acc025204be89801b4bd1dc02bf9f17c736

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

class SubjectHeadingType < ActiveRecord::Base
  attr_accessible :name, :display_name, :note
  include MasterModel
  has_many :subjects
  validates :name, format: {with: /\A[0-9a-z][0-9a-z_\-]*[0-9a-z]\Z/}
end

# == Schema Information
#
# Table name: subject_heading_types
#
#  id           :integer          not null, primary key
#  name         :string(255)      not null
#  display_name :text
#  note         :text
#  position     :integer
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_subject-0.1.0.pre27 app/models/subject_heading_type.rb
enju_subject-0.1.0.pre26 app/models/subject_heading_type.rb