diff options
| author | Bruno Perles | 2015-12-07 15:40:07 +0100 |
|---|---|---|
| committer | Bruno Perles | 2015-12-16 10:02:41 +0100 |
| commit | 39dccecdda931e73959ff7f5cdb96980aab512aa (patch) | |
| tree | 676cf6feb524deeb28536a8b4332c73e2cdd6a8f /db | |
| parent | e2602ff09070e8d752a3c3ddf90ea1d26487af27 (diff) | |
| download | chouette-core-39dccecdda931e73959ff7f5cdb96980aab512aa.tar.bz2 | |
Add control to journey_pattern_secion
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20151204102348_add_section_status_to_journey_pattern.ninoxe_engine.rb | 6 | ||||
| -rw-r--r-- | db/schema.rb | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/db/migrate/20151204102348_add_section_status_to_journey_pattern.ninoxe_engine.rb b/db/migrate/20151204102348_add_section_status_to_journey_pattern.ninoxe_engine.rb new file mode 100644 index 000000000..946705928 --- /dev/null +++ b/db/migrate/20151204102348_add_section_status_to_journey_pattern.ninoxe_engine.rb @@ -0,0 +1,6 @@ +# This migration comes from ninoxe_engine (originally 20151204102248) +class AddSectionStatusToJourneyPattern < ActiveRecord::Migration + def change + add_column :journey_patterns, :section_status, :integer, null: false, default: 0 + end +end diff --git a/db/schema.rb b/db/schema.rb index ac3a1dd2e..551af645a 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: 20151203132113) do +ActiveRecord::Schema.define(version: 20151204102348) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -237,7 +237,7 @@ ActiveRecord::Schema.define(version: 20151203132113) do create_table "journey_patterns", force: true do |t| t.integer "route_id", limit: 8 - t.string "objectid", null: false + t.string "objectid", null: false t.integer "object_version" t.datetime "creation_time" t.string "creator_id" @@ -247,6 +247,7 @@ ActiveRecord::Schema.define(version: 20151203132113) 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 end add_index "journey_patterns", ["objectid"], :name => "journey_patterns_objectid_key", :unique => true |
