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
1 changed files with 1 additions and 1 deletions

View File

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