]> git.openstreetmap.org Git - rails.git/blob - app/models/tracepoint.rb
various gpx bits
[rails.git] / app / models / tracepoint.rb
1 class Tracepoint < ActiveRecord::Base
2   set_table_name 'gps_points'
3
4   validates_numericality_of :latitude
5   validates_numericality_of :longitude
6
7   belongs_to :user
8   belongs_to :trace, :foreign_key => 'gpx_id'
9 end