]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/test/fixtures/reference_code.rb
resync from rails_port 11795:12304
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / test / fixtures / reference_code.rb
1 class ReferenceCode < ActiveRecord::Base\r
2   set_primary_keys :reference_type_id, :reference_code\r
3   \r
4   belongs_to :reference_type, :foreign_key => "reference_type_id"\r
5   \r
6   validates_presence_of :reference_code, :code_label, :abbreviation\r
7 end\r