Sha256: 260be5d6845805bddac8e0352e8592bb07eade0f11c413e6517447e928b16381

Contents?: true

Size: 579 Bytes

Versions: 4

Compression:

Stored size: 579 Bytes

Contents

class IdentifierType < ActiveRecord::Base
  attr_accessible :display_name, :name, :note, :position
  include MasterModel
  default_scope { order('identifier_types.position') }
  has_many :identifiers
  validates :name, format: { with: /\A[0-9a-z][0-9a-z_\-]*[0-9a-z]\Z/ }
end

# == Schema Information
#
# Table name: identifier_types
#
#  id           :integer          not null, primary key
#  name         :string(255)
#  display_name :text
#  note         :text
#  position     :integer
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre62 app/models/identifier_type.rb
enju_biblio-0.1.0.pre61 app/models/identifier_type.rb
enju_biblio-0.1.0.pre60 app/models/identifier_type.rb
enju_biblio-0.1.0.pre59 app/models/identifier_type.rb