aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorcedricnjanga2018-03-18 21:47:40 -0700
committercedricnjanga2018-03-18 21:47:40 -0700
commit9078f171fd874ff9050c726874cdfb01b3abe368 (patch)
tree0edcc32e96863518eb646f2657ab9cf3617094b2 /db
parent6e27953fbf3539da0d0971f762c0a4443c9f8946 (diff)
downloadchouette-core-9078f171fd874ff9050c726874cdfb01b3abe368.tar.bz2
Refs #6210 Remove status value attribue from Chouette::VehicleJourney and section status fron Chouette::JourneyPattern6210-remove-attributes-from-models
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180319043333_remove_attributes_from_models.rb6
-rw-r--r--db/schema.rb6
2 files changed, 8 insertions, 4 deletions
diff --git a/db/migrate/20180319043333_remove_attributes_from_models.rb b/db/migrate/20180319043333_remove_attributes_from_models.rb
new file mode 100644
index 000000000..e6de2987e
--- /dev/null
+++ b/db/migrate/20180319043333_remove_attributes_from_models.rb
@@ -0,0 +1,6 @@
+class RemoveAttributesFromModels < ActiveRecord::Migration
+ def change
+ remove_column "vehicle_journeys", "status_value"
+ remove_column "journey_patterns", "section_status"
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index d7f9a9b25..58c8b0779 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: 20180313110900) do
+ActiveRecord::Schema.define(version: 20180319043333) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -446,7 +446,7 @@ ActiveRecord::Schema.define(version: 20180313110900) do
create_table "journey_patterns", id: :bigserial, force: :cascade do |t|
t.integer "route_id", limit: 8
- t.string "objectid", null: false
+ t.string "objectid", null: false
t.integer "object_version", limit: 8
t.string "name"
t.string "comment"
@@ -454,7 +454,6 @@ ActiveRecord::Schema.define(version: 20180313110900) do
t.string "published_name"
t.integer "departure_stop_point_id", limit: 8
t.integer "arrival_stop_point_id", limit: 8
- t.integer "section_status", default: 0, null: false
t.datetime "created_at"
t.datetime "updated_at"
t.string "checksum"
@@ -976,7 +975,6 @@ ActiveRecord::Schema.define(version: 20180313110900) do
t.string "objectid", null: false
t.integer "object_version", limit: 8
t.string "comment"
- t.string "status_value"
t.string "transport_mode"
t.string "published_journey_name"
t.string "published_journey_identifier"