We’re a group of 3 developers and eager newcomers to Ruby
collaborating on a project.
I started a baseline implementation with a few migrations and models a
few weeks ago.
For the first time, we integrated some code… I did the
integration… a few models were changed so a few migrations got
deleted… and a few models were added, so I copied them over before
checking into svn.
Now our migration numbers are not contiguous so we got 001, 003, 006,
007, 008 and 009. Is this emblematic of a problem? Should these
always be contiguous?
When I copied the new migrations over (and deleted the others), I
ended with a schema.rb was out of date. I had to hand tweak it for
db:migrate to work (added blocks for the new models and deleted the
The comments on top of migrate.db read "# This file is autogenerated.
Instead of editing this file, please use the
migrations feature of ActiveRecord to incrementally modify your
then regenerate this schema definition."
What did I do wrong that I had to head-tweak schema? How should this
integration been done to regenerate the schema? Since we’re very early
in the development process, we don’t have a database to preserve, per