Add index for supporter_id on supporter_notes
This commit is contained in:
parent
96c37e0af9
commit
ebf920013f
2 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddIndexesToSupporterNotes < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :supporter_notes, :supporter_id, :order => {:supporter_id => :asc}
|
||||
end
|
||||
end
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue