diff options
| author | Michel Etienne | 2013-07-01 09:29:16 +0200 |
|---|---|---|
| committer | Michel Etienne | 2013-07-01 09:29:16 +0200 |
| commit | b7b58ecaa5589ed7c09868d81d33c4c282bac268 (patch) | |
| tree | c333f51a2c5caacf705a6cb15bc183dfc19b2c53 /db | |
| parent | e8f8d98b66d3dc912a8ccc253f46b705d77f7db7 (diff) | |
| download | chouette-core-b7b58ecaa5589ed7c09868d81d33c4c282bac268.tar.bz2 | |
finalize KML export
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20130628130527_remove_projection_from_stop_areas.ninoxe_engine.rb | 12 | ||||
| -rw-r--r-- | db/migrate/20130628130528_remove_projection_from_access_points.ninoxe_engine.rb | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/db/migrate/20130628130527_remove_projection_from_stop_areas.ninoxe_engine.rb b/db/migrate/20130628130527_remove_projection_from_stop_areas.ninoxe_engine.rb index 3eb30a601..36b6a6dca 100644 --- a/db/migrate/20130628130527_remove_projection_from_stop_areas.ninoxe_engine.rb +++ b/db/migrate/20130628130527_remove_projection_from_stop_areas.ninoxe_engine.rb @@ -1,9 +1,15 @@ # This migration comes from ninoxe_engine (originally 20130628124932) class RemoveProjectionFromStopAreas < ActiveRecord::Migration def up - remove_column :stop_areas, :x - remove_column :stop_areas, :y - remove_column :stop_areas, :projection_type + if column_exists? :stop_areas, :x + remove_column :stop_areas, :x + end + if column_exists? :stop_areas, :y + remove_column :stop_areas, :y + end + if column_exists? :stop_areas, :projection_type + remove_column :stop_areas, :projection_type + end end def down diff --git a/db/migrate/20130628130528_remove_projection_from_access_points.ninoxe_engine.rb b/db/migrate/20130628130528_remove_projection_from_access_points.ninoxe_engine.rb index f0640a623..ed7ce1f69 100644 --- a/db/migrate/20130628130528_remove_projection_from_access_points.ninoxe_engine.rb +++ b/db/migrate/20130628130528_remove_projection_from_access_points.ninoxe_engine.rb @@ -1,9 +1,15 @@ # This migration comes from ninoxe_engine (originally 20130628124951) class RemoveProjectionFromAccessPoints < ActiveRecord::Migration def up - remove_column :access_points, :x - remove_column :access_points, :y - remove_column :access_points, :projection_type + if column_exists? :access_points, :x + remove_column :access_points, :x + end + if column_exists? :access_points, :y + remove_column :access_points, :y + end + if column_exists? :access_points, :projection_type + remove_column :access_points, :projection_type + end end def down |
