Rails is released under MIT and only includes packages that are either directly under MIT or were re-licensed specifically for Rails under MIT. But not all plugins, generators, engines, or other types of additions are as explicitly clear as to what license they’re released under. It would be great if they were.
So, if you’re the creator of a Rails addition of any kind, please do pick a license and include it with your software. I recommend MIT.