Sha256: 91ab5aa3123d3086afa507ae99104f61676f42c27c286eaad83c44e5fe1d0844

Contents?: true

Size: 270 Bytes

Versions: 7

Compression:

Stored size: 270 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
composite_primary_keys-3.0.9 test/fixtures/reference_type.rb
composite_primary_keys-3.0.8 test/fixtures/reference_type.rb
composite_primary_keys-3.0.7 test/fixtures/reference_type.rb
composite_primary_keys-3.0.4 test/fixtures/reference_type.rb
composite_primary_keys-3.0.3 test/fixtures/reference_type.rb
composite_primary_keys-3.0.0.b3 test/fixtures/reference_type.rb
composite_primary_keys-3.0.0.b2 test/fixtures/reference_type.rb