diff options
| author | Zog | 2018-04-25 18:40:25 +0200 |
|---|---|---|
| committer | Zog | 2018-04-25 18:40:25 +0200 |
| commit | 6c61ffc242a562aeac83317c756e09d8ad210815 (patch) | |
| tree | 4beac3f794b3b42f60517647fb157c706dce2b4b /db | |
| parent | 53990515457b7618e9b2b36832751ad8622fd56e (diff) | |
| download | chouette-core-6c61ffc242a562aeac83317c756e09d8ad210815.tar.bz2 | |
Refs #6762; Fix bug on RoutingConstraintsZone merge
And add some specs
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20180425160730_change_routing_constraint_zones_stop_ids_type.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
