Sha256: 20d707ce947f4077c0a970fe575761a393bae29c7ef678622fd039bf32ae9063
Contents?: true
Size: 562 Bytes
Versions: 14
Compression:
Stored size: 562 Bytes
Contents
class Color < ApplicationRecord #attr_accessible :code, :property belongs_to :library_group validates :code, presence: true, format: /\A[A-Fa-f0-9]{6}\Z/ validates :property, presence: true, uniqueness: true, format: /\A[a-z][0-9a-z_]*[0-9a-z]\Z/ acts_as_list end # == Schema Information # # Table name: colors # # id :integer not null, primary key # library_group_id :integer # property :string # code :string # position :integer # created_at :datetime # updated_at :datetime #
Version data entries
14 entries across 14 versions & 1 rubygems