Class: SetupPostgis

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/templates/setup_postgis.rb,
lib/templates/rails4/setup_postgis.rb

Class Method Summary collapse

Class Method Details

.downObject



6
7
8
# File 'lib/templates/setup_postgis.rb', line 6

def self.down
  execute 'DROP EXTENSION IF EXISTS postgis'
end

.upObject



2
3
4
# File 'lib/templates/setup_postgis.rb', line 2

def self.up
  execute 'CREATE EXTENSION IF NOT EXISTS postgis'
end