Sha256: f564cefa8812fab0a6ea7d4704a53206d5c2a062d6389a0b46286f1299cd6724

Contents?: true

Size: 364 Bytes

Versions: 33

Compression:

Stored size: 364 Bytes

Contents

class ReferenceType < ActiveRecord::Base
  self.primary_key = :reference_type_id
  has_many :reference_codes, :foreign_key => "reference_type_id", :dependent => :destroy
  accepts_nested_attributes_for :reference_codes

  validates_presence_of :type_label, :abbreviation
  validates_uniqueness_of :type_label

  before_destroy do |record|
    a = record
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
composite_primary_keys-8.1.3 test/fixtures/reference_type.rb
composite_primary_keys-8.1.2 test/fixtures/reference_type.rb
composite_primary_keys-7.0.16 test/fixtures/reference_type.rb
composite_primary_keys-7.0.15 test/fixtures/reference_type.rb
composite_primary_keys-8.1.1 test/fixtures/reference_type.rb
composite_primary_keys-7.0.14 test/fixtures/reference_type.rb
composite_primary_keys-8.1.0 test/fixtures/reference_type.rb
composite_primary_keys-7.0.13 test/fixtures/reference_type.rb
composite_primary_keys-6.0.8 test/fixtures/reference_type.rb
composite_primary_keys-8.0.0 test/fixtures/reference_type.rb
composite_primary_keys-7.0.12 test/fixtures/reference_type.rb
composite_primary_keys-7.0.11 test/fixtures/reference_type.rb
composite_primary_keys-6.0.7 test/fixtures/reference_type.rb
composite_primary_keys-7.0.10 test/fixtures/reference_type.rb
composite_primary_keys-7.0.9 test/fixtures/reference_type.rb
composite_primary_keys-7.0.8 test/fixtures/reference_type.rb
composite_primary_keys-7.0.7 test/fixtures/reference_type.rb
composite_primary_keys-7.0.6 test/fixtures/reference_type.rb
composite_primary_keys-7.0.5 test/fixtures/reference_type.rb
composite_primary_keys-7.0.4 test/fixtures/reference_type.rb