rapid7/metasploit-framework — pull request #1852 by limhoff-r7 (2013-05-20 18:17:19+00:00)
Title: Reset column information after running migrations

Because metasploit-framework runs migrations with the same process and with the same connection as it later accesses the database, the column information can become cached prematurely and be incorrect by the end of the migrations. Fix the bad cache by automatically resetting the column information for all model classes after the migrations have run.