Create migration and fix #125
Fixed test cases in bargain