summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-01-11 08:36:31 -0700
committermo khan <mo@mokhan.ca>2015-01-11 08:36:31 -0700
commit9fdc852feb4407d16e26dc4c8194d58a32c5722a (patch)
treed4628003df529268a9ade651ef738f3f9013b0e1 /db/migrate
parent46a9bb1f19d95e9843e16e8ea8d549a9c5508e93 (diff)
add missing indexes.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150111153140_add_some_more_missing_indexes.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20150111153140_add_some_more_missing_indexes.rb b/db/migrate/20150111153140_add_some_more_missing_indexes.rb
new file mode 100644
index 00000000..110a3d9a
--- /dev/null
+++ b/db/migrate/20150111153140_add_some_more_missing_indexes.rb
@@ -0,0 +1,8 @@
+class AddSomeMoreMissingIndexes < ActiveRecord::Migration
+ def change
+ add_index :locations, [:locatable_id, :locatable_type]
+ add_index :photos, [:imageable_id, :imageable_type]
+ add_index :creations, :category_id
+ add_index :categories, :slug
+ end
+end