aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorMichel Etienne2013-07-01 09:29:16 +0200
committerMichel Etienne2013-07-01 09:29:16 +0200
commitb7b58ecaa5589ed7c09868d81d33c4c282bac268 (patch)
treec333f51a2c5caacf705a6cb15bc183dfc19b2c53 /db
parente8f8d98b66d3dc912a8ccc253f46b705d77f7db7 (diff)
downloadchouette-core-b7b58ecaa5589ed7c09868d81d33c4c282bac268.tar.bz2
finalize KML export
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130628130527_remove_projection_from_stop_areas.ninoxe_engine.rb12
-rw-r--r--db/migrate/20130628130528_remove_projection_from_access_points.ninoxe_engine.rb12
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