diff options
| -rw-r--r-- | db/migrate/20170317114614_remove_stop_points_route_fk.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170317114614_remove_stop_points_route_fk.rb b/db/migrate/20170317114614_remove_stop_points_route_fk.rb index ff191445a..b02516328 100644 --- a/db/migrate/20170317114614_remove_stop_points_route_fk.rb +++ b/db/migrate/20170317114614_remove_stop_points_route_fk.rb @@ -1,6 +1,6 @@ class RemoveStopPointsRouteFk < ActiveRecord::Migration def change - if foreign_keys(:stop_points).include?(:stoppoint_route_fkey) + if foreign_keys(:stop_points).any? { |f| f.options[:name] = :stoppoint_route_fkey } remove_foreign_key :stop_points, name: :stoppoint_route_fkey end end |
