Sha256: 29d140675d739f8bbb0bc82dcfa14776e6fb963454614dbfc4da3410afc70c1c

Contents?: true

Size: 283 Bytes

Versions: 20

Compression:

Stored size: 283 Bytes

Contents

class ReferenceCodeUsingSimpleKeyAlias < ActiveRecord::Base
  self.table_name = 'reference_codes'
  self.primary_key = :code_label
  
  belongs_to :reference_type, :foreign_key => "reference_type_id"
  
  validates_presence_of :reference_code, :code_label, :abbreviation
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
composite_primary_keys-12.0.2 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-11.3.1 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-8.1.8 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-12.0.1 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-12.0.0 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-12.0.0.rc5 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-12.0.0.rc4 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-12.0.0.rc3 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-12.0.0.rc2 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-12.0.0.rc1 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-8.1.7 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-11.2.0 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-11.1.0 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-11.0.3 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-11.0.2 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-10.0.5 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-9.0.10 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-11.0.1 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-11.0.0 test/fixtures/reference_code_using_simple_key_alias.rb
composite_primary_keys-10.0.4 test/fixtures/reference_code_using_simple_key_alias.rb