Created
January 7, 2016 09:48
-
-
Save oojikoo-gist/b83ff2d9956d470df82d to your computer and use it in GitHub Desktop.
rails: enabling postgis
This file contains 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
## Enabling postgis | |
``` | |
psql=# create extension postgis; | |
CREATE EXTENSION | |
``` | |
migration for enabling postgis | |
``` | |
$ rails generate migration enable_postgis | |
class EnablePostgis < ActiveRecord::Migration | |
def change | |
enable_extension :postgis | |
end | |
end | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment