So I pre ordered the destiny ghost edition for Xbox 360 and since then I have gotten an Xbox one. I am probably going to upgrade my disc to the Xbox one version but I don't know if the dlc codes will work on my Xbox one.
They shouldn't. Store codes typically refer to a specific online store item that is coded for a certain console, which is why you cannot transfer the DLC (aside from Activision controlling the distribution of content). Whilst it would be great, the two stores (Xbox 360 and One) are separate in all ways but name and managing entity, so chances are they require codes that were originally meant for their specific version of the store.