"We know this because it's what they did with asp.net. An application built on asp.net 1.0 will work on 4.8" . Yep, up to the point where they replaced the framework and called it .net core.
You can also keep running Rails 3 for 20 more years if you want btw.
We generally agree that .net is more stable than Rails though, your point is correct.