fix dump_devdata command and dump migrations