Add index for supporter_id on supporter_notes

This commit is contained in:
Eric Schultz 2018-06-04 16:07:02 -05:00
parent 96c37e0af9
commit ebf920013f
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class AddIndexesToSupporterNotes < ActiveRecord::Migration
def change
add_index :supporter_notes, :supporter_id, :order => {:supporter_id => :asc}
end
end

View file

@ -3190,6 +3190,13 @@ CREATE UNIQUE INDEX index_source_tokens_on_token ON public.source_tokens USING b
CREATE INDEX index_source_tokens_on_tokenizable_id_and_tokenizable_type ON public.source_tokens USING btree (tokenizable_id, tokenizable_type);
--
-- Name: index_supporter_notes_on_supporter_id; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_supporter_notes_on_supporter_id ON public.supporter_notes USING btree (supporter_id);
--
-- Name: index_supporters_on_deleted; Type: INDEX; Schema: public; Owner: -
--
@ -4262,6 +4269,8 @@ INSERT INTO schema_migrations (version) VALUES ('20180214124311');
INSERT INTO schema_migrations (version) VALUES ('20180215124311');
INSERT INTO schema_migrations (version) VALUES ('20180216064311');
INSERT INTO schema_migrations (version) VALUES ('20180216124311');
INSERT INTO schema_migrations (version) VALUES ('20180217124311');