This commit is contained in:
albert 2013-04-09 15:20:34 -04:00
parent 3c45933cb8
commit c17ab321be
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,6 @@
class AddCreatorIdIndexToComments < ActiveRecord::Migration
def change
execute "set statement_timeout = 0"
add_index :comments, :creator_id
end
end

View File

@ -4233,6 +4233,13 @@ CREATE INDEX index_comment_votes_on_user_id ON comment_votes USING btree (user_i
CREATE INDEX index_comments_on_body_index ON comments USING gin (body_index);
--
-- Name: index_comments_on_creator_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_comments_on_creator_id ON comments USING btree (creator_id);
--
-- Name: index_comments_on_post_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -6408,4 +6415,6 @@ INSERT INTO schema_migrations (version) VALUES ('20130331180246');
INSERT INTO schema_migrations (version) VALUES ('20130331182719');
INSERT INTO schema_migrations (version) VALUES ('20130401013601');
INSERT INTO schema_migrations (version) VALUES ('20130401013601');
INSERT INTO schema_migrations (version) VALUES ('20130409191950');