fixes #1224
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddCreatorIdIndexToComments < ActiveRecord::Migration
|
||||
def change
|
||||
execute "set statement_timeout = 0"
|
||||
add_index :comments, :creator_id
|
||||
end
|
||||
end
|
||||
@@ -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');
|
||||
Reference in New Issue
Block a user