aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-06 06:05:47 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-06 06:05:47 -0800
commit4ce98432512d11ac2f0330e2313c2c031552ffff (patch)
tree3647f33befa7fd192c4bec020d3f020ffa7386d9 /guides
parentac13b4d0f6cc7d4ad12f502dcc29fd1f9c298a4b (diff)
parentb337390889cb4a9f80ed08daf072a043f0e7ddf3 (diff)
downloadrails-4ce98432512d11ac2f0330e2313c2c031552ffff.tar.gz
rails-4ce98432512d11ac2f0330e2313c2c031552ffff.tar.bz2
rails-4ce98432512d11ac2f0330e2313c2c031552ffff.zip
Merge pull request #9507 from senny/9483_migrations_without_transactions
Transactions can be turned off per Migration
Diffstat (limited to 'guides')
-rw-r--r--guides/source/migrations.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/guides/source/migrations.md b/guides/source/migrations.md
index 89ae564c24..bd63970bea 100644
--- a/guides/source/migrations.md
+++ b/guides/source/migrations.md
@@ -61,6 +61,10 @@ migrations are wrapped in a transaction. If the database does not support this
then when a migration fails the parts of it that succeeded will not be rolled
back. You will have to rollback the changes that were made by hand.
+NOTE: There are certain queries that can't run inside a transaction. If your
+adapter supports DDL transactions you can use `disable_ddl_transaction!` to
+disable them for a single migration.
+
If you wish for a migration to do something that Active Record doesn't know how
to reverse, you can use `reversible`:
@@ -180,7 +184,7 @@ end
```
If the migration name is of the form "CreateXXX" and is
-followed by a list of column names and types then a migration creating the table
+followed by a list of column names and types then a migration creating the table
XXX with the columns listed will be generated. For example:
```bash