Sha256: ba148fc8178f354c14f8686a9e3f2d834cf2ca567fecbf259bef8bec453761a6
Contents?: true
Size: 563 Bytes
Versions: 30
Compression:
Stored size: 563 Bytes
Contents
class Color < ActiveRecord::Base #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
30 entries across 28 versions & 2 rubygems