]> git.openstreetmap.org Git - rails.git/commitdiff
Qualify ActiveRecord::IrreversibleMigration
authorJason Meinzer <jason@bithive.net>
Mon, 2 Jan 2012 23:24:47 +0000 (15:24 -0800)
committerTom Hughes <tom@compton.nu>
Wed, 4 Jan 2012 22:25:53 +0000 (22:25 +0000)
db/migrate/008_remove_segments.rb
db/migrate/020_populate_node_tags_and_remove.rb
db/migrate/021_move_to_innodb.rb
db/migrate/022_key_constraints.rb
db/migrate/023_add_changesets.rb
db/migrate/029_add_user_foreign_keys.rb
db/migrate/030_add_foreign_keys.rb
db/migrate/034_create_languages.rb

index 16968edadfdd63725ec87f2f264e6906504fdc20..a7d185e4cf7aa54db0b01dd8981729960daa3560 100644 (file)
@@ -82,6 +82,6 @@ class RemoveSegments < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end
index 7d07911890257dd4ea7b4b43a4f9467a780b2587..0e2fae06399ad022e6df6705b426b74d01650d33 100644 (file)
@@ -55,7 +55,7 @@ class PopulateNodeTagsAndRemove < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
 #    add_column :nodes, "tags", :text, :default => "", :null => false
 #    add_column :current_nodes, "tags", :text, :default => "", :null => false
   end
index 7b56b302ef00c99e4fccecee58e948cb95e542ec..50e7ec8bed92eb7c7c48b498692efe690fb63a8b 100644 (file)
@@ -42,6 +42,6 @@ class MoveToInnodb < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end
index 46e7ae662b9eddafc2e0a772814b3c1db062ff6e..a9d6fb10218d7fbb7f55ece699a80ab493a6b984 100644 (file)
@@ -47,6 +47,6 @@ class KeyConstraints < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end
index 94cf853c887c55edb7345b8da8d4edfc91ec0bcd..de3e3bc483a5818c266f15953de7cfb7b49dff5b 100644 (file)
@@ -41,7 +41,7 @@ class AddChangesets < ActiveRecord::Migration
 
   def self.down
     # It's not easy to generate the user ids from the changesets
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
     #drop_table "changesets"
     #drop_table "changeset_tags"
   end
index f965be77e5a35a5d68c75ec8a5571e682ecb639b..7593592582f2f2b6a618d643ebc09a9de50ef9e9 100644 (file)
@@ -15,6 +15,6 @@ class AddUserForeignKeys < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end
index eba44cfad23a11ebdf340b57df1451f006a77a61..5adc20559ef206fffc26dd7fd08fc3fe03b3ee77 100644 (file)
@@ -9,6 +9,6 @@ class AddForeignKeys < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end
index 27994b3fecd16cc7c903ea0289a8f128b91d2847..95ed7d9cedac1235756aa763582016e1e9fef08c 100644 (file)
@@ -17,6 +17,6 @@ class CreateLanguages < ActiveRecord::Migration
   end
 
   def self.down
-    raise IrreversibleMigration.new
+    raise ActiveRecord::IrreversibleMigration
   end
 end