diff options
| author | Michel Etienne | 2013-07-12 12:03:37 +0200 |
|---|---|---|
| committer | Michel Etienne | 2013-07-12 12:03:37 +0200 |
| commit | c92cfc6360ea298d001b814d240b86cb9e79cc42 (patch) | |
| tree | 5d0d95e25a72f6cd84a723e59cfb05d88f10a7d3 /db | |
| parent | 711dc586cd4859417c592ca1fb9339248aa04180 (diff) | |
| download | chouette-core-c92cfc6360ea298d001b814d240b86cb9e79cc42.tar.bz2 | |
add period for neptune export
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20130710123351_set_accessibiliity_to_existing_stop_area.ninoxe_engine.rb | 17 | ||||
| -rw-r--r-- | db/schema.rb | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/db/migrate/20130710123351_set_accessibiliity_to_existing_stop_area.ninoxe_engine.rb b/db/migrate/20130710123351_set_accessibiliity_to_existing_stop_area.ninoxe_engine.rb new file mode 100644 index 000000000..d6511e833 --- /dev/null +++ b/db/migrate/20130710123351_set_accessibiliity_to_existing_stop_area.ninoxe_engine.rb @@ -0,0 +1,17 @@ +# This migration comes from ninoxe_engine (originally 20130710122648) +class SetAccessibiliityToExistingStopArea < ActiveRecord::Migration + def up + Chouette::StopArea.all.each do |s| + if s.mobility_restricted_suitability.nil? + s.mobility_restricted_suitability = false + s.stairs_availability = false + s.lift_availability = false + s.int_user_needs = 0 + s.save + end + end + end + + def down + end +end diff --git a/db/schema.rb b/db/schema.rb index f967e6b0a..f6e27009d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130708084944) do +ActiveRecord::Schema.define(:version => 20130710123351) do create_table "access_links", :force => true do |t| t.integer "access_point_id", :limit => 8 |
