fix pixiv id migration

This commit is contained in:
albert
2013-03-31 15:06:23 -04:00
parent e629454b65
commit a234bf0836

View File

@@ -1,6 +1,7 @@
class AddPixivIdToPosts < ActiveRecord::Migration
def up
execute "set statement_timeout = 0"
remove_index :posts, :pixiv_id
add_column :posts, :pixiv_id, :integer
execute "create index index_posts_on_pixiv_id on posts (pixiv_id) where pixiv_id is not null"
end