For heroku, check if necessary table exist before trying to precompile assets