Rails takes a very clear and opinionated view that the database is just a dumb storage layer for the application code, which sits in the application layer.
If you have very strong feelings against this view, I suggest you stay away from Rails. If you can adjust to it, though, Rails is very powerful, flexible, and efficient.