Fix bug in migrations.
Fix bug in migrations.

pandaproject/panda,newsapps/panda,datadesk/panda,NUKnightLab/panda,PalmBeachPost/panda,newsapps/panda,datadesk/panda,ibrahimcesar/panda,pandaproject/panda,datadesk/panda,NUKnightLab/panda,ibrahimcesar/panda,NUKnightLab/panda,datadesk/panda,newsapps/panda,newsapps/panda,datadesk/panda,PalmBeachPost/panda,pandaproject/panda,ibrahimcesar/panda,ibrahimcesar/panda,pandaproject/panda,NUKnightLab/panda,PalmBeachPost/panda,PalmBeachPost/panda,PalmBeachPost/panda,pandaproject/panda,ibrahimcesar/panda