mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 09:32:46 +08:00
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:
commit
54260fd766
|
@ -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 EXISTS hstore"
|
||||||
add_column :forum_threads, :meta_data, :hstore
|
add_column :forum_threads, :meta_data, :hstore
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user