aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorZog2018-01-03 16:31:33 +0100
committerZog2018-01-08 08:18:57 +0100
commit913d6935727ace3ac94c08adb4e1ec378741fb19 (patch)
tree1c8f0c63693ef4fbe7e20f7af3e6731395c855ad /db
parentfa63d6e3d51ccc0b3a38616747fcd91b5fdfbba5 (diff)
downloadchouette-core-913d6935727ace3ac94c08adb4e1ec378741fb19.tar.bz2
Refs #5455 @6h; Add time and distance between stops in Journey Patterns
- Adds a `JSON` attribute in the model - Adds the fields in the editor
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180103084612_add_costs_to_journey_patterns.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20180103084612_add_costs_to_journey_patterns.rb b/db/migrate/20180103084612_add_costs_to_journey_patterns.rb
new file mode 100644
index 000000000..6795e3671
--- /dev/null
+++ b/db/migrate/20180103084612_add_costs_to_journey_patterns.rb
@@ -0,0 +1,5 @@
+class AddCostsToJourneyPatterns < ActiveRecord::Migration
+ def change
+ add_column :journey_patterns, :costs, :json
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 667b95c84..df8243cfd 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20171227113809) do
+ActiveRecord::Schema.define(version: 20180103084612) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -442,6 +442,7 @@ ActiveRecord::Schema.define(version: 20171227113809) do
t.string "checksum"
t.text "checksum_source"
t.string "data_source_ref"
+ t.json "costs"
end
add_index "journey_patterns", ["objectid"], name: "journey_patterns_objectid_key", unique: true, using: :btree