Sha256: b5cfbdaeb13cd64d2a5ada69f67b97c27beba389704b392f3facf76b7ebc50a8

Contents?: true

Size: 246 Bytes

Versions: 52

Compression:

Stored size: 246 Bytes

Contents

class ReferenceType < ActiveRecord::Base
  set_primary_key :reference_type_id
  has_many :reference_codes, :foreign_key => "reference_type_id"
  
  validates_presence_of :type_label, :abbreviation
  validates_uniqueness_of :type_label
end

Version data entries

52 entries across 52 versions & 6 rubygems

Version Path
composite_primary_keys-0.8.3 test/fixtures/reference_type.rb
composite_primary_keys-0.8.5 test/fixtures/reference_type.rb
composite_primary_keys-2.2.0 test/fixtures/reference_type.rb
composite_primary_keys-2.2.1 test/fixtures/reference_type.rb
composite_primary_keys-2.2.2 test/fixtures/reference_type.rb
composite_primary_keys-1.0.4 test/fixtures/reference_type.rb
composite_primary_keys-1.0.8 test/fixtures/reference_type.rb
composite_primary_keys-1.1.0 test/fixtures/reference_type.rb
composite_primary_keys-1.0.5 test/fixtures/reference_type.rb
composite_primary_keys-1.0.6 test/fixtures/reference_type.rb
composite_primary_keys-1.0.7 test/fixtures/reference_type.rb
dr_nic_magic_models-0.2.5 test/fixtures/reference_type.rb