Sha256: 88d7996274885b6729b69421eb4d3b2cce8cfb82e7c6d606f1ac1cdca289f260
Contents?: true
Size: 482 Bytes
Versions: 15
Compression:
Stored size: 482 Bytes
Contents
class IdentifierType < ActiveRecord::Base 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 # display_name :text # note :text # position :integer # created_at :datetime # updated_at :datetime #
Version data entries
15 entries across 14 versions & 2 rubygems