Sha256: 7f318894a984d874d917e0d35dcc5e7249ccc29dceb81c8dca4c244a54facc5d
Contents?: true
Size: 325 Bytes
Versions: 18
Compression:
Stored size: 325 Bytes
Contents
class ReferenceType < ActiveRecord::Base set_primary_key :reference_type_id has_many :reference_codes, :foreign_key => "reference_type_id", :dependent => :destroy validates_presence_of :type_label, :abbreviation validates_uniqueness_of :type_label before_destroy do |record| a = record puts a end end
Version data entries
18 entries across 18 versions & 1 rubygems