Sha256: 36e6387ac4a21daaa5860997d03f7e9ab75e2cb5d70bf250b193449d216867c2
Contents?: true
Size: 360 Bytes
Versions: 17
Compression:
Stored size: 360 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| record end end
Version data entries
17 entries across 17 versions & 1 rubygems