In my present Rails application, I am resolving scheduling conflicts by sorting the models by the "created_at
" field. However, I realized that when inserting multiple models from a form that allows this, all of the created_at
times are exactly the same!
This is more a question of best programming practices: Can your application rely on your ID column in your database to increment greater and greater with each INSERT
to get their order of creation? To put it another way, can I sort a group of rows I pull out of my database by their ID column and be assured this is an accurate sort based on creation order? And is this a good practice in my application?