Revert "Replace deprecated `Railties.engine`"

This reverts commit dc13765b07a14e42e9fd028b25d670043690f902.