Patches to fix ActiveRecord Model creates