as long as your tank is 24" or taller you shouldnt have an issue. make sure the discus are larger than the rays mouth though lol or else you'll have given your ray a nice expensive snack
Yup it should work, just like a few stated make sure the discus aren't big enough to eat. They could still get pinned to the wall or ground though and be munched on.