Sha256: 832009bfc052f31b3343bf116bcfcb3e7d36d901930249a8cb7a6987d93f40fb

Contents?: true

Size: 263 Bytes

Versions: 3

Compression:

Stored size: 263 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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
composite_primary_keys-3.1.2 test/fixtures/reference_type.rb
composite_primary_keys-3.1.1 test/fixtures/reference_type.rb
composite_primary_keys-3.1.0 test/fixtures/reference_type.rb