changed models and added model_motion which lets ruby motion have migrations