]> git.openstreetmap.org Git - rails.git/blob - app/models/changeset_tag.rb
Show a helpful message when there are no traces to display
[rails.git] / app / models / changeset_tag.rb
1 class ChangesetTag < ActiveRecord::Base
2   self.primary_keys = "changeset_id", "k"
3
4   belongs_to :changeset
5
6   validates_presence_of :changeset
7   validates_length_of :k, :maximum => 255, :allow_blank => true
8   validates_uniqueness_of :k, :scope => :changeset_id
9   validates_length_of :v, :maximum => 255, :allow_blank => true
10 end