Simply Rails 2 file not the same

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

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.

Thanks! Glad that it’s all good!

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.