]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/022_key_constraints.rb
Merge remote-tracking branch 'upstream/pull/2718'
[rails.git] / db / migrate / 022_key_constraints.rb
index aa4c496c9f2dd765a6533cf9cca42f4bc00e1916..3030ed2cf6e33e651b554ee16745a4f9b001521c 100644 (file)
@@ -1,6 +1,6 @@
 require "migrate"
 
-class KeyConstraints < ActiveRecord::Migration
+class KeyConstraints < ActiveRecord::Migration[4.2]
   def self.up
     # Primary keys
     add_primary_key :current_node_tags, [:id, :k]
@@ -47,6 +47,6 @@ class KeyConstraints < ActiveRecord::Migration
   end
 
   def self.down
-    fail ActiveRecord::IrreversibleMigration
+    raise ActiveRecord::IrreversibleMigration
   end
 end