Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Create or drop hstore extension only if necessary.

  • Loading branch information...
commit 95cb030e7793d251716966da34aec8d4afcc8ca9 1 parent 722b551
@svoop svoop authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/templates/setup_hstore91.rb
View
4 lib/templates/setup_hstore91.rb
@@ -1,9 +1,9 @@
class SetupHstore < ActiveRecord::Migration
def self.up
- execute "CREATE EXTENSION hstore"
+ execute "CREATE EXTENSION IF NOT EXISTS hstore"
end
def self.down
- execute "DROP EXTENSION hstore"
+ execute "DROP EXTENSION IF EXISTS hstore"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.