Sha256: 83edab36560202f4afc48c979d2223b089fab53f29d301931ce796160a5238f5

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

class SubjectHeadingType < ActiveRecord::Base
  include MasterModel
  default_scope { order("subject_heading_types.position") }
  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           not null
#  display_name :text
#  note         :text
#  position     :integer
#  created_at   :datetime
#  updated_at   :datetime
#

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_subject-0.1.1 app/models/subject_heading_type.rb
enju_subject-0.1.0 app/models/subject_heading_type.rb
enju_subject-0.1.0.pre34 app/models/subject_heading_type.rb