Merge pull request #45 from choppen5/fix_migration_hstore

initial rake db:migrate was failing if hstore was already set
This commit is contained in:
Sam 2013-02-06 17:34:02 -08:00
commit 54260fd766

View File

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