D major is a diatonic scale rooted on note D. So is D minor, but there are many other scales such as D pentatonic, D Blues, D mixolydian, etc. which are scales of D but are not D major.
D Major is do re mi.... and the rest.
"It's in D" doesn't tell you what the scale is, "It's in D major" does.
Cheers
Dave