parent
d4d1527a92
commit
cd3db7df4d
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,6 @@ class Tracetag < ActiveRecord::Base
|
|||
|
||||
belongs_to :trace, :foreign_key => "gpx_id"
|
||||
|
||||
validates :trace, :presence => true, :associated => true
|
||||
validates :trace, :associated => true
|
||||
validates :tag, :length => 1..255, :format => /\A[^\/;.,?]*\z/
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue