There are three necessary conditions for the mega evolution of Rayquaza:
- It to know Dragon Ascent.
- To have completed the Delta Episode.
- To possess the Mega Bangle or whatever it is.
Finishing the Delta Episode is indeed a requirement. Once you've completed it, I'm sure your Rayquaza would be able to go mega.
Hope I helped!