]> git.openstreetmap.org Git - rails.git/blob - app/models/tracepoint.rb
9de8dc548a04ece9a2b5642cbe8feb685fab2bab
[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