Sha256: 8fa358ecb70cb7963cbdb4d5450c47a5369698fc8308e6011d737774201f04d0

Contents?: true

Size: 426 Bytes

Versions: 14

Compression:

Stored size: 426 Bytes

Contents

class IdentifierType < ApplicationRecord
  include MasterModel
  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
#  display_name :text
#  note         :text
#  position     :integer
#  created_at   :datetime
#  updated_at   :datetime
#

Version data entries

14 entries across 12 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 app/models2/identifier_type.rb
enju_biblio-0.3.18 app/models/identifier_type.rb
enju_biblio-0.3.17 app/models2/identifier_type.rb
enju_biblio-0.3.17 app/models/identifier_type.rb
enju_biblio-0.3.16 app/models/identifier_type.rb
enju_biblio-0.3.15 app/models/identifier_type.rb
enju_biblio-0.3.14 app/models/identifier_type.rb
enju_biblio-0.3.13 app/models/identifier_type.rb
enju_biblio-0.3.12 app/models/identifier_type.rb
enju_biblio-0.3.11 app/models/identifier_type.rb
enju_biblio-0.3.10 app/models/identifier_type.rb
enju_biblio-0.3.10.rc.3 app/models/identifier_type.rb
enju_biblio-0.3.10.rc.2 app/models/identifier_type.rb
enju_biblio-0.3.10.rc.1 app/models/identifier_type.rb