]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-2.2.2/test/fixtures/reference_code.rb
Removed old copy of OpenLayers that was hanging around.
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / 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