aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAlban Peignier2018-03-15 17:09:34 +0100
committerGitHub2018-03-15 17:09:34 +0100
commitf011f7e9806ffeaaba3ad73510bc818211f55dbd (patch)
treeb59a6a71f82b7121fb3a0ffa3a65b9d7cedaa3aa /db
parentd3d3c0f40c37d716cfccbf9297bfbdc98c692521 (diff)
parent9291d45e825edbaf52cb556c102498366985496f (diff)
downloadchouette-core-f011f7e9806ffeaaba3ad73510bc818211f55dbd.tar.bz2
Merge pull request #379 from af83/6095-route--calculate-distance-and-time-cost-between-stops
Calculate distance and time cost between Route stops. Refs #6095
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180313110900_add_costs_to_routes.rb5
-rw-r--r--db/schema.rb4
2 files changed, 8 insertions, 1 deletions
diff --git a/db/migrate/20180313110900_add_costs_to_routes.rb b/db/migrate/20180313110900_add_costs_to_routes.rb
new file mode 100644
index 000000000..d47e86cf0
--- /dev/null
+++ b/db/migrate/20180313110900_add_costs_to_routes.rb
@@ -0,0 +1,5 @@
+class AddCostsToRoutes < ActiveRecord::Migration
+ def change
+ add_column :routes, :costs, :json
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 2f9ffa840..d7f9a9b25 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,8 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20180308095116) do
+ActiveRecord::Schema.define(version: 20180313110900) do
+
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
enable_extension "postgis"
@@ -702,6 +703,7 @@ ActiveRecord::Schema.define(version: 20180308095116) do
t.string "checksum"
t.text "checksum_source"
t.string "data_source_ref"
+ t.json "costs"
end
add_index "routes", ["objectid"], name: "routes_objectid_key", unique: true, using: :btree