fix tests

This commit is contained in:
r888888888
2013-04-14 22:24:55 -07:00
parent 100fb7c539
commit 6caa0f0436
5 changed files with 7 additions and 18 deletions

View File

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