Class: SetupUuid

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

Class Method Summary collapse

Class Method Details

.downObject



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

def self.down
  execute "DROP EXTENSION IF EXISTS uuid-ossp"
end

.upObject



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

def self.up
  execute 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
end