Created
September 3, 2017 04:46
-
-
Save arslan-gg/bfa6db5cbdb0d14b2feed91cd5d209ee to your computer and use it in GitHub Desktop.
How to store coordinates in Ruby on Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreatePlaces < ActiveRecord::Migration[5.1] | |
def change | |
create_table :places do |t| | |
t.decimal "lat", precision: 10, scale: 6 | |
t.decimal "lng", precision: 10, scale: 6 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment