On Dec 21, 2006, at 5:23 PM, Cédric H. wrote:
I’ve just bought the second edition of Agile Development with Rails .
In the first edition, they say the best way to setup the database
is to
use an sql script ( like /config/create.sql ).
Yes, the book was finished before migrations appeared in Rails, as is
described in the foreword of the new book.
But it seems this is deprecated ?
Not deprecated, as a SQL creation it’s not part of Rails, and
therefore not deprecatable by Rails.
However, many people have deprecated SQL creation scripts in their
Rails application building process, due to migrations’ perceived
superiority.
“Do we have to” alway use migration ?
Nope, you can continue to use the older, more inferior method if you
choose to.
One thing I’ve found massively helpful, however, is to use a single
creation migration all during development, and only use serial
migrations after the application has gone into production, and then
try to limit to one migration per release.
Not everyone agrees with this procedure, however. 
–
– Tom M., CTO
– Engine Y., Ruby on Rails Hosting
– Reliability, Ease of Use, Scalability
– (866) 518-YARD (9273)