initial rake db:migrate was failing if hstore was already set

This commit is contained in:
Charles Oppenheimer 2013-02-06 11:47:39 -08:00
parent 2ce69c73eb
commit 9f1c978f11

View file

@ -1,6 +1,6 @@
class AddMetaDataToForumThreads < ActiveRecord::Migration
def change
execute "CREATE EXTENSION hstore"
execute "CREATE EXTENSION IF NOT EXITS hstore"
add_column :forum_threads, :meta_data, :hstore
end
end