diff --git a/db/migrate/20181120182105_add_index_parent_campaign_id_to_campaign.rb b/db/migrate/20181120182105_add_index_parent_campaign_id_to_campaign.rb new file mode 100644 index 00000000..81353b42 --- /dev/null +++ b/db/migrate/20181120182105_add_index_parent_campaign_id_to_campaign.rb @@ -0,0 +1,5 @@ +class AddIndexParentCampaignIdToCampaign < ActiveRecord::Migration + def change + add_index :campaigns, :parent_campaign_id + end +end diff --git a/db/structure.sql b/db/structure.sql index be1d81c5..29f77b98 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -3,7 +3,7 @@ -- -- Dumped from database version 9.6.5 --- Dumped by pg_dump version 9.6.10 +-- Dumped by pg_dump version 9.6.11 SET statement_timeout = 0; SET lock_timeout = 0; @@ -3147,6 +3147,13 @@ CREATE INDEX index_activities_on_supporter_id ON public.activities USING btree ( CREATE INDEX index_campaign_gifts_on_campaign_gift_option_id ON public.campaign_gifts USING btree (campaign_gift_option_id); +-- +-- Name: index_campaigns_on_parent_campaign_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_campaigns_on_parent_campaign_id ON public.campaigns USING btree (parent_campaign_id); + + -- -- Name: index_cards_on_id_and_holder_type_and_holder_id_and_inactive; Type: INDEX; Schema: public; Owner: - -- @@ -4363,3 +4370,5 @@ INSERT INTO schema_migrations (version) VALUES ('20181002160627'); INSERT INTO schema_migrations (version) VALUES ('20181003212559'); +INSERT INTO schema_migrations (version) VALUES ('20181120182105'); +