diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-05 13:32:57 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-05 13:32:57 +0200 |
commit | cfe91ac984fcabcc1980e88367dd636f0a8cc799 (patch) | |
tree | 0ec5474ddfa6755ff6f7e068d1ce9b538d1b3891 /db/migrate/20170405112956_add_index_on_mentions_status_id.rb | |
parent | 8530f9413b86e0734ed9e0be93f0168a070f9ac8 (diff) |
Add index on mentions status_id
Diffstat (limited to 'db/migrate/20170405112956_add_index_on_mentions_status_id.rb')
-rw-r--r-- | db/migrate/20170405112956_add_index_on_mentions_status_id.rb | 5 |
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 |