Skip to content

Instantly share code, notes, and snippets.

@rlisowski
Last active October 18, 2017 05:35
Show Gist options
  • Select an option

  • Save rlisowski/8291b43106a3cfb78a807cbb047f66a6 to your computer and use it in GitHub Desktop.

Select an option

Save rlisowski/8291b43106a3cfb78a807cbb047f66a6 to your computer and use it in GitHub Desktop.
MapFilters locations migration
class CreateLocations < ActiveRecord::Migration[5.1]
def change
create_table :locations do |t|
t.st_point :coordinates, geographic: true
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment