Fixing rollback issues in Rails 4