Missing image_dimensions table

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'image_dimensions' doesn't exist: SELECT * FROM {image_dimensions}

It has been half a dozen times now that I have encountered this error. It happens with the Media's file_entity module (the version coming with the Media module) installed. There is an issue for it at https://www.drupal.org/node/2170231 as well. Sadly, the author has not been able to reproduce the bug. It is obvious, though, that a number of sites have been suffering from it. So, what do you do if yo have this issue? You need to run this code on your site, calling the update that corrects this:

('install', 'file_entity');