aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/migrations.md
diff options
context:
space:
mode:
authorLeandro Facchinetti <git@leafac.com>2014-05-14 18:43:57 -0300
committerLeandro Facchinetti <git@leafac.com>2014-05-16 13:06:15 -0300
commitb48bc869fa55a1b4622ca316a9b62b6da901402f (patch)
treed103944d8e0ea87e68a88477b6cdb3559fb9355e /guides/source/migrations.md
parent125cc780c534b836f5443259991307e88b92ad1e (diff)
downloadrails-b48bc869fa55a1b4622ca316a9b62b6da901402f.tar.gz
rails-b48bc869fa55a1b4622ca316a9b62b6da901402f.tar.bz2
rails-b48bc869fa55a1b4622ca316a9b62b6da901402f.zip
Document conflicts in `db/schema.rb` [ci skip]
Diffstat (limited to 'guides/source/migrations.md')
-rw-r--r--guides/source/migrations.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/guides/source/migrations.md b/guides/source/migrations.md
index c61ccfe94a..fe1a6a4697 100644
--- a/guides/source/migrations.md
+++ b/guides/source/migrations.md
@@ -902,6 +902,11 @@ schema into a RDBMS other than the one used to create it.
Because schema dumps are the authoritative source for your database schema, it
is strongly recommended that you check them into source control.
+`db/schema.rb` contains the current version number of the database. This
+ensures conflicts are going to happen in the case of a merge where both
+branches touched the schema. When that happens, solve conflicts manually,
+keeping the highest version number of the two.
+
Active Record and Referential Integrity
---------------------------------------