From b751aaf7cfe1bad950950af2207f165f59af3a0c Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 31 Mar 2013 15:08:54 -0400 Subject: [PATCH] fix index --- db/migrate/20130331182719_add_pixiv_id_to_posts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20130331182719_add_pixiv_id_to_posts.rb b/db/migrate/20130331182719_add_pixiv_id_to_posts.rb index 416e6e9d3..4d95989ee 100644 --- a/db/migrate/20130331182719_add_pixiv_id_to_posts.rb +++ b/db/migrate/20130331182719_add_pixiv_id_to_posts.rb @@ -1,7 +1,7 @@ class AddPixivIdToPosts < ActiveRecord::Migration def up execute "set statement_timeout = 0" - remove_index :posts, :pixiv_id + # 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