Magnesium deficiency is common in diabetic patients, as magnesium can be lost in the urine with hyperglycemia. A study in Diabetes Care reported that low magnesium status is common in Type 2 Diabetes Mellitus (T2DM) and showed that when low-magnesium Type 2 Diabetes Mellitus patients were given an oral dose of magnesium daily for sixteen weeks, the mineral reduced insulin resistance, fasting glucose, and A1C levels.
A: Fasting plasma glucose and weight change 2 years after randomization either to gastric banding or to intensive medical therapy for weight loss and glucose control. Data plotted with permission from Dixon et al. (13). B: Early changes in fasting plasma glucose level following pancreatoduodenal bypass surgery. A decrease into the normal range was seen within 7 days. Reproduced with permission from Taylor (98).

Foods with a low glycemic load: The glycemic index of a food tells you about the blood glucose-raising potential of the food. Foods that have a high glycemic index are converted into sugar after being eaten more quickly than low glycemic foods. If you are fighting diabetes, stick to low glycemic foods like non-starchy vegetables, stone fruits and berries, nuts, seeds, avocados, coconut, organic meat, eggs, wild-caught fish, and raw pastured dairy.
In type 2 diabetes the body has an increasingly harder time to handle all the sugar in the blood. Large amounts of the blood sugar-lowering hormone insulin are produced, but it’s still not enough, as insulin sensitivity decreases. At the time of being diagnosed with type 2 diabetes, diabetics usually have ten times more insulin in their bodies than normal. As a side effect, this insulin stores fat and causes weight gain, something that has often been in progress for many years before the disease was diagnosed.

Now the question is, "what is the medicine that cures Diabetes?" The answer is, "Food is the medicine." Sounds interesting? Here in India, in the last 10 years we have seen a few thousands of them completely cured of Diabetes. All they have done is, they reversed the situation. To understand this, we first have to understand the bio-chemistry of Type-2 Diabetes. Type-2 Diabetes is caused either because our Pancreas not producing enough Insulin and/or our cells are not able to take the Insulin. Without the insulin accepted by the insulin receptors, the Glucose channel is not activated to take the Glucose. In most patients, even if Pancreas does not work well, Insulin units are given and then the insulin is slowly accepted by the Insulin receptors. But any food rich in Sugars, releases lot of Glucose instantly into the blood stream which cannot be absorbed by the cell at the same pace as the Insulin receptors are not capable/ready to accept the Insulin.

One can't, in spite of the initial reported success of following a 600 kcal vegetarian diet for 8 weeks cured all 11 participants of their diabetes, resulting in an enormous very beneficial weight loss of 15 kg and reversal of pancreatic fat infiltration that many think is the underlying defect causing type 2 diabetes, see this 2011 paper Reversal of type 2 diabetes: normalisation of beta cell function in association with decreased pancreas and liver triacylglycerol only just 3 months afterwards diabetes had recurred in 5 out of the 11 see Diet reverses Type 2 Diabetes
In investigating how BCG administration produces its beneficial effects, the research team identified a mechanism never previously seen in humans in response to treatment with any drug – a shifting of the process of glucose metabolism from oxidative phosphorylation, the most common pathway by which cells convert glucose into energy, to aerobic glycolysis, a process that involves significantly greater glucose consumption by cells. The researchers also found that BCG could reduce blood sugar elevations in mice that were caused by means other than autoimmune attack, raising the possibility that BCG vaccines could also be beneficial against type 2 diabetes.”

Whole-body insulin resistance is the earliest predictor of type 2 diabetes onset, and this mainly reflects muscle insulin resistance (26). However, careful separation of the contributions of muscle and liver have shown that early improvement in control of fasting plasma glucose level is associated only with improvement in liver insulin sensitivity (20,21). It is clear that the resumption of normal or near-normal diurnal blood glucose control does not require improvement in muscle insulin sensitivity. Although this finding may at first appear surprising, it is supported by a wide range of earlier observations. Mice totally lacking in skeletal muscle insulin receptors do not develop diabetes (27). Humans who have the PPP1R3A genetic variant of muscle glycogen synthase cannot store glycogen in muscle after meals but are not necessarily hyperglycemic (28). Many normoglycemic individuals maintain normal blood glucose levels with a degree of muscle insulin resistance identical to those with type 2 diabetes (29).
This seems hard to do, but really it’s not if you know one secret: Replace snacking with something far more satisfying — fat. That’s right, the government is wrong to recommend a low fat diet. Fat is what makes you feel full until your next meal. Take away the fat, take away the full. Don’t go to an extreme, but do lean strongly toward a high-fat low-carb diet.