Sha256: f564cefa8812fab0a6ea7d4704a53206d5c2a062d6389a0b46286f1299cd6724
Contents?: true
Size: 364 Bytes
Versions: 33
Compression:
Stored size: 364 Bytes
Contents
class ReferenceType < ActiveRecord::Base self.primary_key = :reference_type_id has_many :reference_codes, :foreign_key => "reference_type_id", :dependent => :destroy accepts_nested_attributes_for :reference_codes validates_presence_of :type_label, :abbreviation validates_uniqueness_of :type_label before_destroy do |record| a = record end end
Version data entries
33 entries across 33 versions & 1 rubygems