Sha256: 00790a6c201dc8eb1eaab7251e9507830d37405378e7a436d6c82117a0276aca

Contents?: true

Size: 458 Bytes

Versions: 14

Compression:

Stored size: 458 Bytes

Contents

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

# == Schema Information
#
# Table name: classification_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/classification_type.rb
enju_subject-0.3.1 app/models/classification_type.rb
enju_subject-0.3.0 app/models/classification_type.rb
enju_subject-0.3.0.rc.1 app/models/classification_type.rb
enju_subject-0.3.0.beta.1 app/models/classification_type.rb
enju_subject-0.2.3 app/models/classification_type.rb
enju_subject-0.2.2 app/models/classification_type.rb
enju_subject-0.2.1 app/models/classification_type.rb
enju_subject-0.2.0 app/models/classification_type.rb
enju_subject-0.2.0.beta.5 app/models/classification_type.rb
enju_subject-0.2.0.beta.4 app/models/classification_type.rb
enju_subject-0.2.0.beta.3 app/models/classification_type.rb
enju_subject-0.2.0.beta.2 app/models/classification_type.rb
enju_subject-0.2.0.beta.1 app/models/classification_type.rb