]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/022_key_constraints.rb
Bump coverallsapp/github-action from 2.2.0 to 2.2.1
[rails.git] / db / migrate / 022_key_constraints.rb
index 79706bc4a64cf59599ec07022d313a908d2af080..e7840b4147dd62ead3cfbf93d721d017968d7f89 100644 (file)
@@ -1,6 +1,4 @@
-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 +45,6 @@ class KeyConstraints < ActiveRecord::Migration
   end
 
   def self.down
-    fail ActiveRecord::IrreversibleMigration
+    raise ActiveRecord::IrreversibleMigration
   end
 end