Sha256: 030f4c0ceed852e89b39ec178522b10962e87328ec8a04c7116a4c79b8038e15

Contents?: true

Size: 517 Bytes

Versions: 3

Compression:

Stored size: 517 Bytes

Contents

class ClassificationType < ActiveRecord::Base
  include MasterModel
  default_scope { order('classification_types.position') }
  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

3 entries across 3 versions & 1 rubygems

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