about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-04-05 13:32:57 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-04-05 13:32:57 +0200
commitcfe91ac984fcabcc1980e88367dd636f0a8cc799 (patch)
tree0ec5474ddfa6755ff6f7e068d1ce9b538d1b3891 /db/migrate
parent8530f9413b86e0734ed9e0be93f0168a070f9ac8 (diff)
Add index on mentions status_id
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170405112956_add_index_on_mentions_status_id.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20170405112956_add_index_on_mentions_status_id.rb b/db/migrate/20170405112956_add_index_on_mentions_status_id.rb
new file mode 100644
index 000000000..3ed1a20cf
--- /dev/null
+++ b/db/migrate/20170405112956_add_index_on_mentions_status_id.rb
@@ -0,0 +1,5 @@
+class AddIndexOnMentionsStatusId < ActiveRecord::Migration[5.0]
+  def change
+    add_index :mentions, :status_id
+  end
+end