Rails Mysql to Postgresql Float -


i'm transferring database mysql postgresql.

i have latitude , longitude column 1 of models:

  t.float :latitude   t.float :longitude 

i'm using mysql2psql gem load mysql database postgres database locally.

the problem have after transferred mysql database postgres have data such as:

latitude: 40 longitude: -83

rather than:

latitude: 40.xxxx longitude -83.xxxx

please advise.

mysql:

+ | field                  | type         | null | key | default |          | +------------------------+--------------+------+-----+---------+----------------+ | latitude               | float        | yes  |     | null    |                | | longitude              | float        | yes  |     | null    |     


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -