fix for table does not exist, we are in a rake task for migration or alike