Column data types changed after "rake db: reset"

Having simplified my development database, I just ran rake db:reset . This has reset my database, as expected, but also changed schema.rb , so that each database column that previously had the timestamp type now has a datetime type.

I have two questions:

  • How could this happen?
  • What consequences may have consequences, if any?

I am running rails 3.0.3.

+4
source share
1 answer

I use the command below to reset database tables and does not affect my timestamps

  rake db:migrate:reset 
0
source

Source: https://habr.com/ru/post/1388511/


All Articles