Change t.string to t.date for date type of data in migration files.