summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
24ee561)
records in the database with no description.
class Trace < ActiveRecord::Base
set_table_name 'gpx_files'
class Trace < ActiveRecord::Base
set_table_name 'gpx_files'
- validates_presence_of :user_id, :name, :public, :description, :timestamp
+ validates_presence_of :user_id, :name, :public, :timestamp
+ validates_presence_of :description, :on => :create
# validates_numericality_of :latitude, :longitude
validates_inclusion_of :inserted, :in => [ true, false]
# validates_numericality_of :latitude, :longitude
validates_inclusion_of :inserted, :in => [ true, false]