From e48e2fb56a2c8427fe9a875fd53e5905ed37c177 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Mon, 17 Oct 2011 18:21:12 -0700 Subject: [PATCH] touch up the down on the latest migration --- db/migrate/20111018010003_add_back_indexes.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/db/migrate/20111018010003_add_back_indexes.rb b/db/migrate/20111018010003_add_back_indexes.rb index dcd13a6c0..cfc3f9c4c 100644 --- a/db/migrate/20111018010003_add_back_indexes.rb +++ b/db/migrate/20111018010003_add_back_indexes.rb @@ -12,7 +12,8 @@ class AddBackIndexes < ActiveRecord::Migration remove_index :comments, :column => [:commentable_id, :commentable_type] remove_index :photos, :column => :status_message_guid - change_column :share_visibilities, :shareable_type - change_column :comments, :commentable_type + change_column :share_visibilities, :shareable_type, :string, :default => "Post", :null => false + change_column :comments, :commentable_type, :string, :default => "Post", :null => false + # reduce index size end end