jarvis_88 — 2010-04-27T11:30:33-04:00 — #1
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
kmsolorio — 2010-04-27T14:49:12-04:00 — #2
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.
jarvis_88 — 2010-04-28T06:45:20-04:00 — #3
Thanks! Glad that it's all good!
mittineague — 2010-05-08T17:56:38-04:00 — #4
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.