]> git.openstreetmap.org Git - rails.git/blob - app/models/tracetag.rb
Merge remote-tracking branch 'openstreetmap/pull/1122'
[rails.git] / app / models / tracetag.rb
1 class Tracetag < ActiveRecord::Base
2   self.table_name = "gpx_file_tags"
3
4   belongs_to :trace, :foreign_key => "gpx_id"
5
6   validates :trace, :associated => true
7   validates :tag, :length => 1..255, :format => %r{\A[^/;.,?]*\z}
8 end