aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTeddy Wing2017-09-19 16:06:09 +0200
committerTeddy Wing2017-09-19 16:06:09 +0200
commit4b36ccafe309c5ef30ea1fbed2dc13322a95c1f4 (patch)
tree1df5fe462cdee53cf44346701c7af12d6f3e5fe2 /lib
parentec4d3335fabe68e52f129dc92160c3ff5dd7b972 (diff)
downloadchouette-core-4b36ccafe309c5ef30ea1fbed2dc13322a95c1f4.tar.bz2
referential.rake: Update `Route#wayback` values
The possible values for this field changed in 2fa3be1518da4f471d614832f80526e074983195 to `outbound` and `inbound`. Update them accordingly in this Rake task, otherwise it fails. Refs #4555
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/referential.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/referential.rake b/lib/tasks/referential.rake
index d27354a40..7bab6e040 100644
--- a/lib/tasks/referential.rake
+++ b/lib/tasks/referential.rake
@@ -26,11 +26,11 @@ namespace :referential do
route_attrs = { line: line, name: "Route #{name}", published_name: "Published #{name}" }
if i.even?
- route_attrs[:wayback] = :straight_forward
+ route_attrs[:wayback] = :outbound
route = Chouette::Route.create!(route_attrs)
route.stop_areas = stop_areas
else
- route_attrs[:wayback] = :backward
+ route_attrs[:wayback] = :inbound
route_attrs[:opposite_route] = Chouette::Route.last if i == 3
route = Chouette::Route.create!(route_attrs)
route.stop_areas = stop_areas.reverse