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
composite_primary_keys-0.6.1 test/fixtures/reference_code.rb
composite_primary_keys-0.6.2 test/fixtures/reference_code.rb
composite_primary_keys-0.6.3 test/fixtures/reference_code.rb
composite_primary_keys-0.7.0 test/fixtures/reference_code.rb
composite_primary_keys-0.7.1 test/fixtures/reference_code.rb
composite_primary_keys-0.6.0 test/fixtures/reference_code.rb
composite_primary_keys-0.3.1 test/fixtures/reference_code.rb
composite_primary_keys-0.1.4 test/fixtures/reference_code.rb
composite_primary_keys-0.3.2 test/fixtures/reference_code.rb
composite_primary_keys-0.8.0 test/fixtures/reference_code.rb
composite_primary_keys-0.7.2 test/fixtures/reference_code.rb
composite_primary_keys-0.7.3 test/fixtures/reference_code.rb
composite_primary_keys-0.7.4 test/fixtures/reference_code.rb
composite_primary_keys-0.7.5 test/fixtures/reference_code.rb
composite_primary_keys-0.8.2 test/fixtures/reference_code.rb
composite_primary_keys-0.9.93 test/fixtures/reference_code.rb
composite_primary_keys-1.0.0 test/fixtures/reference_code.rb
composite_primary_keys-1.0.1 test/fixtures/reference_code.rb
composite_primary_keys-1.0.10 test/fixtures/reference_code.rb
composite_primary_keys-1.0.2 test/fixtures/reference_code.rb