Permalink
Browse files

Improve documentation for IrreversibleMigrations. Closes #9636 [toolm…

…antim]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 3104291 commit a406643b959d4bb601c62857ca38ebcd91eec4a8 @NZKoz NZKoz committed Nov 11, 2007
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/migration.rb
View
6 activerecord/lib/active_record/migration.rb
@@ -85,7 +85,7 @@ def initialize(name)
# == Irreversible transformations
#
# Some transformations are destructive in a manner that cannot be reversed. Migrations of that kind should raise
- # an <tt>IrreversibleMigration</tt> exception in their +down+ method.
+ # an <tt>ActiveRecord::IrreversibleMigration</tt> exception in their +down+ method.
#
# == Running migrations from within Rails
#
@@ -105,7 +105,7 @@ def initialize(name)
# To roll the database back to a previous migration version, use
# <tt>rake db:migrate VERSION=X</tt> where <tt>X</tt> is the version to which
# you wish to downgrade. If any of the migrations throw an
- # <tt>IrreversibleMigration</tt> exception, that step will fail and you'll
+ # <tt>ActiveRecord::IrreversibleMigration</tt> exception, that step will fail and you'll
# have some manual work to do.
#
# == Database support
@@ -124,7 +124,7 @@ def initialize(name)
#
# 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
#

0 comments on commit a406643

Please sign in to comment.