From a406643b959d4bb601c62857ca38ebcd91eec4a8 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sun, 11 Nov 2007 21:31:59 +0000 Subject: [PATCH] Improve documentation for IrreversibleMigrations. Closes #9636 [toolmantim] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/migration.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index ee50bbd44e..fa9dc83255 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -85,7 +85,7 @@ module ActiveRecord # == Irreversible transformations # # Some transformations are destructive in a manner that cannot be reversed. Migrations of that kind should raise - # an IrreversibleMigration exception in their +down+ method. + # an ActiveRecord::IrreversibleMigration exception in their +down+ method. # # == Running migrations from within Rails # @@ -105,7 +105,7 @@ module ActiveRecord # To roll the database back to a previous migration version, use # rake db:migrate VERSION=X where X is the version to which # you wish to downgrade. If any of the migrations throw an - # IrreversibleMigration exception, that step will fail and you'll + # ActiveRecord::IrreversibleMigration exception, that step will fail and you'll # have some manual work to do. # # == Database support @@ -124,7 +124,7 @@ module ActiveRecord # # def self.down # # not much we can do to restore deleted data - # raise IrreversibleMigration + # raise ActiveRecord::IrreversibleMigration, "Can't recover the deleted tags" # end # end #