Sha256: fadb64bfe0c0ccc696783fac95aeedfba47b1c8631f4785ba3934f81c3463f3f
Contents?: true
Size: 519 Bytes
Versions: 10
Compression:
Stored size: 519 Bytes
Contents
class RequestStatusType < ApplicationRecord include MasterModel validates :name, presence: true, format: { with: /\A[0-9A-Za-z][0-9A-Za-z_\-\s,]*[0-9a-z]\Z/ } has_many :reserves private def valid_name? true end end # == Schema Information # # Table name: request_status_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
10 entries across 10 versions & 1 rubygems