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.

Make timestamped migrations optional

#446

Have the next_migration_string check for a config option to determine migration number formatting:

config.active_record.timestamped_migrations = true

I think the default should be false due to the "legacy" applications.

Reported by ronin-16348 (at lighthouseapp) · June 18th, 2008 @ 05:37 PM

State: resolved
Milestone: none
Assigned to: Pratik Pratik
Importance: Low

Activity

  1. ronin-16348 (at lighthouseapp)
  2. ronin-16348 (at lighthouseapp)
    ronin-16348 (at lighthouseapp)

    I didn't see the attachment, just noticed where references it on the screen. I removed the duplicate attachment.

    June 18th, 2008 @ 05:40 PM

  3. ronin-16348 (at lighthouseapp)
    ronin-16348 (at lighthouseapp)

    Forgot to add:

    cattr_accessor :timestamped_migrations , :instance_writer => false

    @@timestamped_migrations = false

    This is required (as you guys know), in activerecord/lib/active_record/base.rb

    Apologies, it's my first attempt at submitting a patch.

    June 18th, 2008 @ 05:50 PM

  4. ronin-16348 (at lighthouseapp)
    ronin-16348 (at lighthouseapp)

    new diff file attached with active_record/base included.

    June 18th, 2008 @ 05:58 PM

  5. Pratik
    Pratik
    • State changed from new to incomplete
    • Assigned user set to Pratik
    • Tag set to patch

    The default needs to be true.

    Also, it'll be nice if you could send an email to rails core list to discuss this change.

    Thanks.

    July 9th, 2008 @ 01:24 PM

  6. ronin-16348 (at lighthouseapp)
    ronin-16348 (at lighthouseapp)

    I just sent an email to the core list. Is this why it was marked as incomplete?

    thanks,

    andy

    July 11th, 2008 @ 02:32 PM

  7. nikz
  8. nikz
    nikz

    Uploaded a diff that flips the default and adds docs, so us luddites can have our numbers back ;)

    Now you kids get off my dang lawn!

    July 17th, 2008 @ 02:42 AM

  9. Repository
    Repository
    • State changed from incomplete to resolved

    (from [bbab6391366f59189e84d2b8de2a63bea91a9851]) Set config.active_record.timestamped_migrations = false to have migrations with numeric prefix instead of UTC timestamp. [#446 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    July 17th, 2008 @ 02:57 AM

  10. ronin-16348 (at lighthouseapp)
  11. Repository
    Repository

    (from [af3f2aad7ecb31a6e1d09f06775cb33b4ad64d91]) Set config.active_record.timestamped_migrations = false to have migrations with numeric prefix instead of UTC timestamp. [#446 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    July 30th, 2008 @ 05:44 PM

  12. Jeff Kreeftmeijer
    Jeff Kreeftmeijer
    • Tag cleared.
    • Importance changed from to Low

    Automatic cleanup of spam.

    November 8th, 2010 @ 08:49 AM