aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180313082623_add_custom_field_values_to_stop_areas.rb2
-rw-r--r--db/schema.rb4
2 files changed, 2 insertions, 4 deletions
diff --git a/db/migrate/20180313082623_add_custom_field_values_to_stop_areas.rb b/db/migrate/20180313082623_add_custom_field_values_to_stop_areas.rb
index 1b901d139..e49be7e40 100644
--- a/db/migrate/20180313082623_add_custom_field_values_to_stop_areas.rb
+++ b/db/migrate/20180313082623_add_custom_field_values_to_stop_areas.rb
@@ -1,5 +1,5 @@
class AddCustomFieldValuesToStopAreas < ActiveRecord::Migration
def change
- add_column :stop_areas, :custom_field_values, :json
+ add_column :stop_areas, :custom_field_values, :jsonb
end
end
diff --git a/db/schema.rb b/db/schema.rb
index 77e35f449..9cf5f8319 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -841,10 +841,8 @@ ActiveRecord::Schema.define(version: 20180319043333) do
t.integer "waiting_time"
t.string "kind"
t.jsonb "localized_names"
-
t.datetime "confirmed_at"
- t.json "custom_field_values"
-
+ t.jsonb "custom_field_values"
end
add_index "stop_areas", ["name"], name: "index_stop_areas_on_name", using: :btree