Class: SetupEarthdistance

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/templates/setup_earthdistance.rb

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
10
# File 'lib/templates/setup_earthdistance.rb', line 7

def self.down
  execute "DROP EXTENSION IF EXISTS earthdistance"
  execute "DROP EXTENSION IF EXISTS cube"
end

.upObject



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

def self.up
  execute "CREATE EXTENSION IF NOT EXISTS cube"
  execute "CREATE EXTENSION IF NOT EXISTS earthdistance"
end