diff options
| author | Zog | 2018-01-26 16:17:22 +0100 |
|---|---|---|
| committer | cedricnjanga | 2018-02-06 11:04:27 -0800 |
| commit | 857e2f2319594f61436c2f2245136c303452d934 (patch) | |
| tree | 9f86d787e7d92f858f95146611e2445885f1db5e /db | |
| parent | 76607faf09c0dabd5282d4b6e5624c75d4625a63 (diff) | |
| download | chouette-core-857e2f2319594f61436c2f2245136c303452d934.tar.bz2 | |
Refs #5750 @1h; Add a "kind" attribute to StopAreas
This determines if the StopArea is commercial or not
The useless fields are hidden in the form for the non-commercials ones
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20180126134944_add_kind_to_stop_areas.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/db/migrate/20180126134944_add_kind_to_stop_areas.rb b/db/migrate/20180126134944_add_kind_to_stop_areas.rb new file mode 100644 index 000000000..3a4f0a0c8 --- /dev/null +++ b/db/migrate/20180126134944_add_kind_to_stop_areas.rb @@ -0,0 +1,5 @@ +class AddKindToStopAreas < ActiveRecord::Migration + def change + add_column :stop_areas, :kind, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 11fb96ee3..9be702fa3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,13 +11,18 @@ # # It's strongly recommended that you check this file into your version control system. +<<<<<<< HEAD ActiveRecord::Schema.define(version: 20180123174450) do +======= +ActiveRecord::Schema.define(version: 20180126134944) do +>>>>>>> Refs #5750 @1h; Add a "kind" attribute to StopAreas # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" - enable_extension "postgis" enable_extension "hstore" + enable_extension "postgis" enable_extension "unaccent" + enable_extension "objectid" create_table "access_links", id: :bigserial, force: :cascade do |t| t.integer "access_point_id", limit: 8 @@ -91,6 +96,8 @@ ActiveRecord::Schema.define(version: 20180123174450) do t.datetime "created_at" t.datetime "updated_at" t.integer "workgroup_id", limit: 8 + t.integer "int_day_types" + t.date "excluded_dates", array: true end add_index "calendars", ["organisation_id"], name: "index_calendars_on_organisation_id", using: :btree @@ -117,6 +124,7 @@ ActiveRecord::Schema.define(version: 20180123174450) do t.datetime "updated_at" t.date "end_date" t.string "date_type" + t.string "mode" end add_index "clean_ups", ["referential_id"], name: "index_clean_ups_on_referential_id", using: :btree @@ -788,6 +796,7 @@ ActiveRecord::Schema.define(version: 20180123174450) do t.datetime "updated_at" t.string "stif_type" t.integer "waiting_time" + t.string "kind" end add_index "stop_areas", ["name"], name: "index_stop_areas_on_name", using: :btree |
