diff --git a/db/migrate/20140717110124_delete_events_without_user.rb b/db/migrate/20140717110124_delete_events_without_user.rb index 82cf5611..c4435af2 100644 --- a/db/migrate/20140717110124_delete_events_without_user.rb +++ b/db/migrate/20140717110124_delete_events_without_user.rb @@ -1,5 +1,4 @@ class DeleteEventsWithoutUser < ActiveRecord::Migration - class TempEvent < ActiveRecord::Base self.table_name = 'events' end @@ -32,6 +31,6 @@ class DeleteEventsWithoutUser < ActiveRecord::Migration end def down - raise ActiveRecord::IrreversibleMigration, 'Cannot reverse migration. Events deleted cannot be re-created' + raise ActiveRecord::IrreversibleMigration.new('Cannot reverse migration. Events deleted cannot be re-created') end end