Ukraine, indeed, was a member of the nuclear club. That's what the Budapest Accord was all about. Ukraine agreed to give up its nuclear weapons -- leftovers from the collapse of the Soviet Union -- in return for security assurances from the Russian Federation, the United States and the United Kingdom.
Goes to show how much faith one should place in the international pledges of the Russian Federation, doesn't it? Not to mention those of the United States...