aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorEdouard Maffert2016-07-28 14:54:44 +0200
committerEdouard Maffert2016-07-28 15:05:36 +0200
commit88edbfc580cd32623486e8798dbf8d64b07ee6e5 (patch)
tree0a61c018851ca9093fcc46b241d7ba273fdcd941 /db
parent3138fcc7b9e81b5c3a557337d86523d11f72d4e4 (diff)
downloadchouette-core-88edbfc580cd32623486e8798dbf8d64b07ee6e5.tar.bz2
fix seed, add objectid for lines
Diffstat (limited to 'db')
-rw-r--r--db/seeds.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 3a321e068..cee1e9f9a 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -43,7 +43,9 @@ line_referential = LineReferential.find_or_create_by(name: "CodifLigne") do |ref
end
10.times do |n|
- line_referential.lines.find_or_create_by name: "Test #{n}"
+ line_referential.lines.find_or_create_by name: "Test #{n}" do |l|
+ l.objectid = "Chouette:Dummy:Line:00" + n.to_s
+ end
end