Sha256: 6946e139b0960590e077731a69e40712cceaf36ab1170f1084451d98d9913d9b

Contents?: true

Size: 247 Bytes

Versions: 59

Compression:

Stored size: 247 Bytes

Contents

class ReferenceCode < ActiveRecord::Base
  set_primary_keys :reference_type_id, :reference_code
  
  belongs_to :reference_type, :foreign_key => "reference_type_id"
  
  validates_presence_of :reference_code, :code_label, :abbreviation
end

Version data entries

59 entries across 59 versions & 6 rubygems

Version Path
kovyrin-composite_primary_keys-2.3.2 test/fixtures/reference_code.rb
mingusbabcock-composite_primary_keys-2.2.2.1 test/fixtures/reference_code.rb
tyler-composite_primary_keys-1.1.0 test/fixtures/reference_code.rb
tyler-composite_primary_keys-1.1.1 test/fixtures/reference_code.rb
tyler-composite_primary_keys-1.1.2 test/fixtures/reference_code.rb
tyler-composite_primary_keys-1.1.3 test/fixtures/reference_code.rb
tyler-composite_primary_keys-1.1.4 test/fixtures/reference_code.rb
composite_primary_keys-3.0.9 test/fixtures/reference_code.rb
composite_primary_keys-3.0.8 test/fixtures/reference_code.rb
composite_primary_keys-3.0.7 test/fixtures/reference_code.rb
composite_primary_keys-3.0.4 test/fixtures/reference_code.rb
composite_primary_keys-3.0.3 test/fixtures/reference_code.rb
composite_primary_keys-3.0.0.b3 test/fixtures/reference_code.rb
composite_primary_keys-3.0.0.b2 test/fixtures/reference_code.rb
globe-composite_primary_keys-3.0.1 test/fixtures/reference_code.rb
composite_primary_keys-2.3.5.1 test/fixtures/reference_code.rb
composite_primary_keys-2.3.5 test/fixtures/reference_code.rb
composite_primary_keys-2.3.2 test/fixtures/reference_code.rb
composite_primary_keys-0.1.3 test/fixtures/reference_code.rb
composite_primary_keys-0.6.1 test/fixtures/reference_code.rb