From e7be10fb8e180c2bfe1f8d1a9209628f73e21d8d Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 25 Apr 2017 15:43:49 -0700 Subject: [PATCH] add index for sites.parent_site.id --- migrations/102_parent_sites_index.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 migrations/102_parent_sites_index.rb diff --git a/migrations/102_parent_sites_index.rb b/migrations/102_parent_sites_index.rb new file mode 100644 index 00000000..80045de7 --- /dev/null +++ b/migrations/102_parent_sites_index.rb @@ -0,0 +1,9 @@ +Sequel.migration do + up { + DB.add_index :sites, :parent_site_id + } + + down { + DB.drop_index :sites, :parent_site_id + } +end