SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simply Rails 2 file not the same

    Hi,
    I don't know if I'm just being stupid, but in Chapter 5 p121, you have to generate a model. Done. Everything looks good.

    But, it should also create this file, db/migrate/001_create_stories.rb, which it did, but instead of 001 it has a huge number. This is what it made: 20100316162739_create_stories.rb .

    Sorry if this is a stupid query, but I would just like to know if this is supposed to happen or not? It's not a train crash, as everything still works fine. Just a newbie to rails, and just want to make sure that this is not going to cause any possible future problems! Thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Location
    Cleveland, OH
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're still good. Rails was updated since the version in the book, and migration files are now preceded with the timestamp instead of just 001, 002, etc.

  3. #3
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! Glad that it's all good!

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,426
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    If you look closely, it's technically not a timestamp as in UNIX (number of seconds), but is the date/time in YYYYMMDDHHMMSS format. Actually quite human-readable once you know what it is.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •