From b9384b6f8b80cd53f0071b51a7b234bbf23fe499 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 31 May 2017 17:45:51 +0200 Subject: vehicle_journey_at_stops: Set `default: 0` on day offset fields Use a default day offset of `0` for `arrival_day_offset` and `departure_day_offset`. By default, it makes sense to think of any at-stop created as occurring on the current day. If that needs to change, the offset can be customised. Refs #3596 --- db/schema.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'db/schema.rb') diff --git a/db/schema.rb b/db/schema.rb index a45181687..b497b9494 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: 20170502130327) do +ActiveRecord::Schema.define(version: 20170531154114) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -783,8 +783,8 @@ ActiveRecord::Schema.define(version: 20170502130327) do t.time "departure_time" t.string "for_boarding" t.string "for_alighting" - t.integer "departure_day_offset" - t.integer "arrival_day_offset" + t.integer "departure_day_offset", default: 0 + t.integer "arrival_day_offset", default: 0 end add_index "vehicle_journey_at_stops", ["stop_point_id"], name: "index_vehicle_journey_at_stops_on_stop_pointid", using: :btree -- cgit v1.2.3