From a234bf0836b2de2028e3cb7d324317165e1ccf96 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 31 Mar 2013 15:06:23 -0400 Subject: [PATCH] fix pixiv id migration --- db/migrate/20130331182719_add_pixiv_id_to_posts.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20130331182719_add_pixiv_id_to_posts.rb b/db/migrate/20130331182719_add_pixiv_id_to_posts.rb index 473333aa0..416e6e9d3 100644 --- a/db/migrate/20130331182719_add_pixiv_id_to_posts.rb +++ b/db/migrate/20130331182719_add_pixiv_id_to_posts.rb @@ -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