aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorAlban Peignier2018-05-29 14:17:41 +0200
committerAlban Peignier2018-05-29 14:17:41 +0200
commit5e1a196ade1e5e469779e3acbc8fb46ff1d66630 (patch)
treeaaef829b0a9a584aa461c5c93b990d170b0a6b11 /app
parent79e89af12bbc865b6defafa27dca5dafd72df3ef (diff)
downloadchouette-core-7213-destroy-rczs-with-route.tar.bz2
Add destroy option on Route#routing_constraint_zones. Refs #72137213-destroy-rczs-with-route
Diffstat (limited to 'app')
-rw-r--r--app/models/chouette/route.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/chouette/route.rb b/app/models/chouette/route.rb
index 6a02203ad..52d5d1a5f 100644
--- a/app/models/chouette/route.rb
+++ b/app/models/chouette/route.rb
@@ -27,7 +27,7 @@ module Chouette
belongs_to :line
belongs_to :opposite_route, :class_name => 'Chouette::Route', :foreign_key => :opposite_route_id
- has_many :routing_constraint_zones
+ has_many :routing_constraint_zones, :dependent => :destroy
has_many :journey_patterns, :dependent => :destroy
has_many :vehicle_journeys, :dependent => :destroy do
def timeless