]> git.openstreetmap.org Git - rails.git/blob - app/models/tracetag.rb
2614e597124ee8a1aeaa41964c51c6ddc07bff49
[rails.git] / app / models / tracetag.rb
1 class Tracetag < ActiveRecord::Base
2   self.table_name = "gpx_file_tags"
3
4   validates_format_of :tag, :with => /\A[^\/;.,?]*\z/
5   validates_length_of :tag, :within => 1..255
6
7   belongs_to :trace, :foreign_key => "gpx_id"
8 end