# trackid :integer not null
# latitude :integer not null
# longitude :integer not null
-# gpx_id :bigint(8) not null
+# gpx_id :bigint not null
# timestamp :datetime
-# tile :bigint(8)
+# tile :bigint
#
# Indexes
#
validates :trace, :associated => true
validates :timestamp, :presence => true
- belongs_to :trace, :foreign_key => "gpx_id"
+ belongs_to :trace, :foreign_key => "gpx_id", :inverse_of => :points
end