My environment -> Ruby 1.9.2 and Rails v3.0.5
I noticed a strange model in rake db: reset. According to the rails source code, rake db: reset will => db: drop, db: create and db: migrate. https://github.com/rails/rails/blob/v3.0.5/activerecord/lib/active_record/railties/databases.rake#L159
Settings: One of my migration files has Model.create instructions for filling in some data (Forgive me, I'm not the one who put the data filling code in these migrations :) ..)
Case 1: When I do the steps manually, I mean drop, create and migrate, one after another - these statements populate the data in the table.
Case 2: When I just rake db: reset, the circuit is set correctly. but the data is not in db. Does db: reset skip create / update instructions. I tried this several times to make sure that I have no errors in my actions. I am still getting this behavior.
what's wrong here ...?
source share