Tag Archives: migrations

Rails 2.1: UTC-Timestamped Migrations

Rails 2.1 introduces UTC-timestamped migrations–instead of a single, three-digit prefix to your number, you now get a timestamp (everything from the current year to the current second). This helps you resolve conflicts of the same-numbered migration showing up in multi-developer environments; but it’s annoying sometimes! How can you turn this off? Through environment.rb! Continue reading

Posted in Development, Projects | Tagged , , | Comments Off

Migrations

Migrations allow you to write database-level code in a platform-independent way. You can create, edit, and delete tables, even populate data–all from migrations. Additionally, migrations allow you to iteratively modify production databases without worrying about destroying them. Migrations are reversible, and follow a numbering system. Continue reading

Posted in Development | Tagged , , | Comments Off

Database Migrations

Databases change all the time. How can you update your production database without destroying it? Enter migrations. Migrations are code–they allow you to update your database incrementally. In this post, we discuss how to add, delete, and modify tables for your model classes using migrations. Continue reading

Posted in Development | Tagged , , , | 2 Comments