Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Move Migration UTC Timestamps Inside File

#631

This is a patch-in-progress to move the UTC timestamps into migration files, rather than having them as part of the filename.

It was discussed on the core list

This patch does a couple of things:

  • Changes back to numbering for migration files
  • Adds a timestamp to generated migration files inside the class (self.timestamp = generation_time.to_s
  • Adds the rake:migrations:renumber tasks, which automatically renumbers migrations based on their UTC timestamp

The renumber task is run automatically if the migrate task finds duplicate migrations.

It's also "svn-aware" for its move command, as svn is the only VCS (in my limited experience) which has problems with files moving.

I know there are no tests; and in fact some fail! I'm working on that, just thought I'd post it so I can get feedback.

Cheers!

Nik

Reported by nikz · July 16th, 2008 @ 12:51 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to invalid

    Explanation in mailing list.

    Thanks.

    July 16th, 2008 @ 03:53 PM