]> git.openstreetmap.org Git - rails.git/blob - app/models/relation_tag.rb
Add a 30 second timeout to all data browser requests to avoid attempts
[rails.git] / app / models / relation_tag.rb
1 class RelationTag < ActiveRecord::Base
2   set_table_name 'current_relation_tags'
3
4   belongs_to :relation, :foreign_key => 'id'
5
6   validates_presence_of :id
7   validates_length_of :k, :v, :maximum => 255, :allow_blank => true
8   validates_uniqueness_of :id, :scope => :k
9   validates_numericality_of :id, :only_integer => true
10 end