Permalink
Browse files

Add 'if not exists' to hstore extension creation command. Fixes #12

  • Loading branch information...
gravitystorm committed Nov 7, 2012
1 parent 37b6bf5 commit dfe87b6533b34e44b3307416bbc81db3402b62b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/migrate/20120116130000_setup_hstore.rb
@@ -1,6 +1,6 @@
class SetupHstore < ActiveRecord::Migration
def self.up
- execute "CREATE EXTENSION hstore"
+ execute "CREATE EXTENSION IF NOT EXISTS hstore"
end
def self.down

0 comments on commit dfe87b6

Please sign in to comment.