]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-2.2.2/test/fixtures/reference_code.rb
Allow the format to be selected for note API responses
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / test / fixtures / reference_code.rb
1 class ReferenceCode < ActiveRecord::Base
2   set_primary_keys :reference_type_id, :reference_code
3   
4   belongs_to :reference_type, :foreign_key => "reference_type_id"
5   
6   validates_presence_of :reference_code, :code_label, :abbreviation
7 end