summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/call_route.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/call_route.rb b/app/models/call_route.rb
index 4cf2445..eba247c 100644
--- a/app/models/call_route.rb
+++ b/app/models/call_route.rb
@@ -1,3 +1,5 @@
class CallRoute < ActiveRecord::Base
attr_accessible :table, :name, :endpoint_type, :endpoint_id, :position
+
+ has_many :route_elements, :dependent => :destroy
end