]> git.openstreetmap.org Git - rails.git/blob - app/models/changeset_tag.rb
Fix a few typos in translation resource names.
[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