Rebuilding Rails Repository