From c62e8fe12ca46c4af2d77f6bed37c7dfa80d1b39 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Thu, 3 Jul 2014 17:31:27 -0500 Subject: [PATCH] add missing indexes --- migrations/035_add_missing_indexes.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/035_add_missing_indexes.rb diff --git a/migrations/035_add_missing_indexes.rb b/migrations/035_add_missing_indexes.rb new file mode 100644 index 00000000..b45688be --- /dev/null +++ b/migrations/035_add_missing_indexes.rb @@ -0,0 +1,10 @@ +Sequel.migration do + change do + alter_table(:events) { add_index :created_at } + alter_table(:sites) { add_index :updated_at } + alter_table(:comment_likes) { add_index :comment_id } + alter_table(:comment_likes) { add_index :actioning_site_id } + alter_table(:sites_tags) { add_index :tag_id } + alter_table(:tags) { add_index :name } + end +end \ No newline at end of file