Hi group,
We're working as a team of programmers and for most of us, when we run rake db:migrate, we get our datetime columns to show up with the datetime datatype in the schema.rb file, but for others, when they run rake db:migrate, these columns show up as timestamp in the schema.rb file.(See example below). We're all on Ruby 2.1.0 and Rails 4.0.9 and using Postgres for our DB. I know that as far as the postgres goes, it treats both timestamp and datetime the same, but is there anyway to fix this? Is there a setting that needs to be changed?
example:
create_table "contacts", force: true do |t|
t.string "name"
t.string "phone_number"
t.string "email"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_id"
t.string "uuid"
t.text "log"
end
VS
create_table "contacts", force: true do |t|
t.string "name"
t.string "phone_number"
t.string "email"
t.timestamp "created_at"
t.timestamp "updated_at"
t.integer "user_id"
t.string "uuid"
t.text "log"
end