Solved migration problem in device gem