]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/030_add_foreign_keys.rb
Don't try and add fingerprints for user images
[rails.git] / db / migrate / 030_add_foreign_keys.rb
index 54820aab1d8e9ca953116f028f33c8cfc8bf3f43..ed7652543d61981a89a0443cde5fa6950a1727a5 100644 (file)
@@ -1,6 +1,6 @@
 require "migrate"
 
-class AddForeignKeys < ActiveRecord::Migration
+class AddForeignKeys < ActiveRecord::Migration[4.2]
   def self.up
     add_foreign_key :changeset_tags, :changesets, :column => :id, :name => "changeset_tags_id_fkey"
     add_foreign_key :diary_comments, :diary_entries, :name => "diary_comments_diary_entry_id_fkey"
@@ -9,6 +9,6 @@ class AddForeignKeys < ActiveRecord::Migration
   end
 
   def self.down
-    fail ActiveRecord::IrreversibleMigration
+    raise ActiveRecord::IrreversibleMigration
   end
 end