Sha256: e3d9bfc27392b99ac937979fc2ae76d89cd08a5df1ac2aa47b5d678717290df1

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

class ClassificationType < ApplicationRecord
  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

3 entries across 3 versions & 1 rubygems

Version Path
enju_subject-0.3.4 app/models/classification_type.rb
enju_subject-0.3.3 app/models/classification_type.rb
enju_subject-0.4.0.beta.1 app/models/classification_type.rb