Sha256: 5d71c4f5c4115cabb4c355260e22dcfc29416fccb37a7720d6bbad728b50b5b8
Contents?: true
Size: 481 Bytes
Versions: 10
Compression:
Stored size: 481 Bytes
Contents
class IdentifierType < ApplicationRecord 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
10 entries across 10 versions & 1 rubygems