projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to iD v2.26.2
[rails.git]
/
app
/
models
/
tracetag.rb
diff --git
a/app/models/tracetag.rb
b/app/models/tracetag.rb
index 0a59ba29abb1dcbe9fbf856437298034a38b5e12..70296cd54f15115c95a4dcac43d01f234539f554 100644
(file)
--- a/
app/models/tracetag.rb
+++ b/
app/models/tracetag.rb
@@
-2,9
+2,9
@@
#
# Table name: gpx_file_tags
#
#
# Table name: gpx_file_tags
#
-# gpx_id :
integer
default(0), not null
+# gpx_id :
bigint(8)
default(0), not null
# tag :string not null
# tag :string not null
-# id :
integer
not null, primary key
+# id :
bigint(8)
not null, primary key
#
# Indexes
#
#
# Indexes
#
@@
-16,11
+16,11
@@
# gpx_file_tags_gpx_id_fkey (gpx_id => gpx_files.id)
#
# gpx_file_tags_gpx_id_fkey (gpx_id => gpx_files.id)
#
-class Tracetag < A
ctiveRecord::Base
+class Tracetag < A
pplicationRecord
self.table_name = "gpx_file_tags"
self.table_name = "gpx_file_tags"
- belongs_to :trace, :foreign_key => "gpx_id"
+ belongs_to :trace, :foreign_key => "gpx_id"
, :inverse_of => :tags
validates :trace, :associated => true
validates :trace, :associated => true
- validates :tag, :length => 1..255, :
format => %r{\A[^/;.,?]*\z}, :invalid_chars => true
+ validates :tag, :length => 1..255, :
characters => { :url_safe => true }
end
end