Sha256: b287a30e1b6aa46f8e16794845c1ab74052e1c808a53717a73fe1c0136194cc3
Contents?: true
Size: 580 Bytes
Versions: 9
Compression:
Stored size: 580 Bytes
Contents
class ClassificationType < ActiveRecord::Base attr_accessible :name, :display_name, :note include MasterModel default_scope :order => 'position' has_many :classifications validates :name, :format => {:with => /\A[0-9a-z][0-9a-z_\-]*[0-9a-z]\Z/} end # == Schema Information # # Table name: classification_types # # id :integer not null, primary key # name :string(255) not null # display_name :text # note :text # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
9 entries across 9 versions & 1 rubygems