From b48bc869fa55a1b4622ca316a9b62b6da901402f Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Wed, 14 May 2014 18:43:57 -0300 Subject: Document conflicts in `db/schema.rb` [ci skip] --- guides/source/migrations.md | 5 +++++ 1 file changed, 5 insertions(+) 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 --------------------------------------- -- cgit v1.2.3