Sha256: 67eb100e8f5b1b2aad1f3244221ccb119ce11adf3480d87af15a74bfc4477597
Contents?: true
Size: 482 Bytes
Versions: 10
Compression:
Stored size: 482 Bytes
Contents
class BudgetType < 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 :items private def valid_name? true end end # == Schema Information # # Table name: budget_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