Class: SetupEarthdistance
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- SetupEarthdistance
- Defined in:
- lib/templates/setup_earthdistance.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
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 |
.up ⇒ Object
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 |