]> git.openstreetmap.org Git - rails.git/blob - app/models/changeset_tag.rb
Treat an explicit public=0 argument as meaning private.
[rails.git] / app / models / changeset_tag.rb
1 class ChangesetTag < ActiveRecord::Base
2   belongs_to :changeset, :foreign_key => 'id'
3
4   validates_presence_of :id
5   validates_length_of :k, :v, :maximum => 255, :allow_blank => true
6   validates_uniqueness_of :id, :scope => :k
7   validates_numericality_of :id, :only_integer => true
8 end