Tag Archives: database

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

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