You have a production server that uses an ORM. You push some change that change the database table. The class redefinition code updates all instances of database objects, and the ORM kicks off an automatic migration[0] so the database and the objects are in sync.
[0]: e.g., using Crane http://eudoxia.me/crane/