From 6c61ffc242a562aeac83317c756e09d8ad210815 Mon Sep 17 00:00:00 2001 From: Zog Date: Wed, 25 Apr 2018 18:40:25 +0200 Subject: Refs #6762; Fix bug on RoutingConstraintsZone merge And add some specs --- ...0180425160730_change_routing_constraint_zones_stop_ids_type.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20180425160730_change_routing_constraint_zones_stop_ids_type.rb (limited to 'db') diff --git a/db/migrate/20180425160730_change_routing_constraint_zones_stop_ids_type.rb b/db/migrate/20180425160730_change_routing_constraint_zones_stop_ids_type.rb new file mode 100644 index 000000000..1e4224186 --- /dev/null +++ b/db/migrate/20180425160730_change_routing_constraint_zones_stop_ids_type.rb @@ -0,0 +1,8 @@ +class ChangeRoutingConstraintZonesStopIdsType < ActiveRecord::Migration + def change + reversible do |dir| + dir.up { change_column :routing_constraint_zones, :stop_point_ids, :integer, array: true } + dir.down { change_column :routing_constraint_zones, :stop_point_ids, :bigint, array: true } + end + end +end -- cgit v1.2.3