Sha256: dc644c2da3be33bce180557768d22b8c4fe810580b754cde4482554300dae64e

Contents?: true

Size: 450 Bytes

Versions: 14

Compression:

Stored size: 450 Bytes

Contents

class SubjectHeadingType < ActiveRecord::Base
  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           not null
#  display_name :text
#  note         :text
#  position     :integer
#  created_at   :datetime
#  updated_at   :datetime
#

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
enju_subject-0.3.2 app/models/subject_heading_type.rb
enju_subject-0.3.1 app/models/subject_heading_type.rb
enju_subject-0.3.0 app/models/subject_heading_type.rb
enju_subject-0.3.0.rc.1 app/models/subject_heading_type.rb
enju_subject-0.3.0.beta.1 app/models/subject_heading_type.rb
enju_subject-0.2.3 app/models/subject_heading_type.rb
enju_subject-0.2.2 app/models/subject_heading_type.rb
enju_subject-0.2.1 app/models/subject_heading_type.rb
enju_subject-0.2.0 app/models/subject_heading_type.rb
enju_subject-0.2.0.beta.5 app/models/subject_heading_type.rb
enju_subject-0.2.0.beta.4 app/models/subject_heading_type.rb
enju_subject-0.2.0.beta.3 app/models/subject_heading_type.rb
enju_subject-0.2.0.beta.2 app/models/subject_heading_type.rb
enju_subject-0.2.0.beta.1 app/models/subject_heading_type.rb