aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorRobert2018-01-10 08:30:54 +0100
committerAlban Peignier2018-01-10 17:47:10 +0100
commit547871444fa4e0958566fcd28030fb39ae8117f1 (patch)
tree83a47d69ee918fdf0e3627498b4cb21ccf68aa15 /db/migrate
parentab6a4624b7adeb3f4304eec65f4b42cdcc27b0dc (diff)
downloadchouette-core-547871444fa4e0958566fcd28030fb39ae8117f1.tar.bz2
Fixes: #5505@0.25h; Invesitgating the failure to compute a distinct join on vehicle_journeys
Solution: custom_field_values: json -> jsonb
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180110071946_change_custom_fields_from_json_to_text_in_vehicle_journeys.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20180110071946_change_custom_fields_from_json_to_text_in_vehicle_journeys.rb b/db/migrate/20180110071946_change_custom_fields_from_json_to_text_in_vehicle_journeys.rb
new file mode 100644
index 000000000..c43620b32
--- /dev/null
+++ b/db/migrate/20180110071946_change_custom_fields_from_json_to_text_in_vehicle_journeys.rb
@@ -0,0 +1,5 @@
+class ChangeCustomFieldsFromJsonToTextInVehicleJourneys < ActiveRecord::Migration
+ def change
+ change_column :vehicle_journeys, :custom_field_values, :jsonb
+ end
+end