I'm transferring my database from mysql to postgresql.
I have a latitude and longitude column for one of my models:
t.float :latitude
t.float :longitude
I'm using mysql2psql gem to load the mysql database into a postgres database locally.
The problem I have is after I transferred the mysql database to postgres I have data such as:
Latitude: 40 Longitude: -83
Rather than:
Latitude: 40.xxxx Longitude -83.xxxx
Please advise.
Mysql:
+
| Field | Type | Null | Key | Default | Extra |
+------------------------+--------------+------+-----+---------+----------------+
| latitude | float | YES | | NULL | |
| longitude | float | YES | | NULL |
desc table_name
from the MySQL shell and\d table_name
frompsql
. – mu is too short Aug 9 at 5:23