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
kovyrin-composite_primary_keys-2.3.2 test/fixtures/reference_type.rb
mingusbabcock-composite_primary_keys-2.2.2.1 test/fixtures/reference_type.rb
tyler-composite_primary_keys-1.1.0 test/fixtures/reference_type.rb
tyler-composite_primary_keys-1.1.1 test/fixtures/reference_type.rb
tyler-composite_primary_keys-1.1.2 test/fixtures/reference_type.rb
tyler-composite_primary_keys-1.1.3 test/fixtures/reference_type.rb
tyler-composite_primary_keys-1.1.4 test/fixtures/reference_type.rb
globe-composite_primary_keys-3.0.1 test/fixtures/reference_type.rb
composite_primary_keys-2.3.5.1 test/fixtures/reference_type.rb
composite_primary_keys-2.3.5 test/fixtures/reference_type.rb
composite_primary_keys-2.3.2 test/fixtures/reference_type.rb
composite_primary_keys-0.1.3 test/fixtures/reference_type.rb
composite_primary_keys-0.6.2 test/fixtures/reference_type.rb
composite_primary_keys-0.3.1 test/fixtures/reference_type.rb
composite_primary_keys-0.6.3 test/fixtures/reference_type.rb
composite_primary_keys-0.6.0 test/fixtures/reference_type.rb
composite_primary_keys-0.7.0 test/fixtures/reference_type.rb
composite_primary_keys-0.3.3 test/fixtures/reference_type.rb
composite_primary_keys-0.7.1 test/fixtures/reference_type.rb
composite_primary_keys-0.1.4 test/fixtures/reference_type.rb