X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3404fd5bbe0550348a4c0a2024024db61b656f04..30f8e412bc0b43e62b46b99f2cbe3d0c7ac13d51:/db/migrate/029_add_user_foreign_keys.rb diff --git a/db/migrate/029_add_user_foreign_keys.rb b/db/migrate/029_add_user_foreign_keys.rb index d11f81cbb..cb0d9e1dd 100644 --- a/db/migrate/029_add_user_foreign_keys.rb +++ b/db/migrate/029_add_user_foreign_keys.rb @@ -1,3 +1,5 @@ +require 'migrate' + class AddUserForeignKeys < ActiveRecord::Migration def self.up add_foreign_key :changesets, [:user_id], :users, [:id] @@ -13,6 +15,6 @@ class AddUserForeignKeys < ActiveRecord::Migration end def self.down - raise IrreversibleMigration.new + raise ActiveRecord::IrreversibleMigration end end