X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..af26c9fe606eba5ca4b3346cc26cb965890feb60:/db/migrate/022_key_constraints.rb?ds=sidebyside diff --git a/db/migrate/022_key_constraints.rb b/db/migrate/022_key_constraints.rb index 79706bc4a..3030ed2cf 100644 --- a/db/migrate/022_key_constraints.rb +++ b/db/migrate/022_key_constraints.rb @@ -1,6 +1,6 @@ -require 'migrate' +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