diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-06-02 10:18:54 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-02 16:18:54 +0200 |
commit | 1fd5251376d5a7366e7e8b4d70af8db59d8ebb3d (patch) | |
tree | fc9843294988bd61e57a1e2f18c043d1989c4f44 /db/migrate | |
parent | edddc7c79138bacf99d351033a75c0c15c480c59 (diff) |
Add index to media_attachments.account_id (#3510)
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170601210557_add_index_on_media_attachments_account_id.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20170601210557_add_index_on_media_attachments_account_id.rb b/db/migrate/20170601210557_add_index_on_media_attachments_account_id.rb new file mode 100644 index 000000000..c51ab28e5 --- /dev/null +++ b/db/migrate/20170601210557_add_index_on_media_attachments_account_id.rb @@ -0,0 +1,5 @@ +class AddIndexOnMediaAttachmentsAccountId < ActiveRecord::Migration[5.1] + def change + add_index :media_attachments, :account_id + end +end |