メモ代わりのエントリー。 Google Maps 上にデータをプロットしたくて、緯度と経度を DB に保存したいのだが、Rails の migration ファイルで def self.up create_table :tests, :force => true do |t| t.column :lat, :float t.column :lng, :float end end として、float 型の lat と lng カラムを用意した場合、誤差が生じて、実際にプロットしたい場所とずれて表示されてしまう。 解決方法はというと、Rails のバージョンが 1.2.2 以上ならば、:decimal 型がサポートされているとのことなので、 t.column(:price, :decimal, :precision => 17, :scale => 14, :default => 0.0, :