diff options
author | Malcolm Locke <malc@wholemeal.co.nz> | 2011-05-18 19:22:05 +1200 |
---|---|---|
committer | Malcolm Locke <malc@wholemeal.co.nz> | 2011-05-18 19:22:05 +1200 |
commit | 1c9a9d9bd2132534fb8b3f6bec6acdb7dcb38ba9 (patch) | |
tree | 486d4669aeb8ddb8e4fa89be50244b1f54c501d9 | |
parent | 45faaee8746ee23e399743707ecf264159afb81a (diff) | |
download | rails-1c9a9d9bd2132534fb8b3f6bec6acdb7dcb38ba9.tar.gz rails-1c9a9d9bd2132534fb8b3f6bec6acdb7dcb38ba9.tar.bz2 rails-1c9a9d9bd2132534fb8b3f6bec6acdb7dcb38ba9.zip |
Explicitly use ActiveRecord::IrreversibleMigration
-rw-r--r-- | railties/guides/source/migrations.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/migrations.textile b/railties/guides/source/migrations.textile index 27f8a9303e..d60b68ec7f 100644 --- a/railties/guides/source/migrations.textile +++ b/railties/guides/source/migrations.textile @@ -386,7 +386,7 @@ class ExampleMigration < ActiveRecord::Migration end </ruby> -Sometimes your migration will do something which is just plain irreversible, for example it might destroy some data. In cases like those when you can't reverse the migration you can raise +IrreversibleMigration+ from your +down+ method. If someone tries to revert your migration an error message will be displayed saying that it can't be done. +Sometimes your migration will do something which is just plain irreversible, for example it might destroy some data. In cases like those when you can't reverse the migration you can raise +ActiveRecord::IrreversibleMigration+ from your +down+ method. If someone tries to revert your migration an error message will be displayed saying that it can't be done. h3. Running Migrations |