aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/migrations.textile
diff options
context:
space:
mode:
authorSandip Ransing <sandip@joshsoftware.com>2012-04-06 01:11:42 +0530
committerSandip Ransing <sandip@joshsoftware.com>2012-04-06 01:11:42 +0530
commitb11113f924d2eb2acbe836954d17a02163f45275 (patch)
tree0ab8a2cf566f6cb761339763da2448577b04e7c1 /guides/source/migrations.textile
parente59b66979236c93b42467f5656da28179db1397c (diff)
downloadrails-b11113f924d2eb2acbe836954d17a02163f45275.tar.gz
rails-b11113f924d2eb2acbe836954d17a02163f45275.tar.bz2
rails-b11113f924d2eb2acbe836954d17a02163f45275.zip
Where migration can get wrong help added
Diffstat (limited to 'guides/source/migrations.textile')
-rw-r--r--guides/source/migrations.textile10
1 files changed, 10 insertions, 0 deletions
diff --git a/guides/source/migrations.textile b/guides/source/migrations.textile
index 1d8c1e03f3..a565974227 100644
--- a/guides/source/migrations.textile
+++ b/guides/source/migrations.textile
@@ -928,3 +928,13 @@ features, the +execute+ method can be used to execute arbitrary SQL. You could
also use some plugin like "foreigner":https://github.com/matthuhiggins/foreigner
which add foreign key support to Active Record (including support for dumping
foreign keys in +db/schema.rb+).
+
+h3. Where you may get into trouble ?
+
+While running specific migrations with VERSION specified, By mistake if you misspell
+command you may get into big trouble.
+
+Consider scenario where you want to run down migration +db:migrate:down VERSION=324213490000+
+By mistake if you type something like +db:migrate :down VERSION=324213490000+ then it will
+change the complete meaning of migration command and it will be migrated like you are
+executing +db:migrate VERSION=32421349000+