Added unique index to activation_code.