diff options
| author | Alban Peignier | 2017-03-22 12:06:59 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2017-03-22 12:07:04 +0100 | 
| commit | 612043979188da4e0343efbc4606a232941b7423 (patch) | |
| tree | 25234e8764ac5496ab8dc009d98c1022680e89f9 /db | |
| parent | 80ef06e8ae7187e94acec7adcf2f1c4ec7e7555b (diff) | |
| download | chouette-core-612043979188da4e0343efbc4606a232941b7423.tar.bz2 | |
Fixes test in RemoveStopPointsRouteFk. Refs #2864
Diffstat (limited to 'db')
| -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  | 
