Ruby on Rails and Database
In Rails, ActiveRecord works as a bridge between the database and Ruby code and allows straightforward mappings between applications objects and database tables. ActiveRecord is compatible with databases like MySQL, SQLite and PstegreSQL. RoR recommends three separate databases for development, production and test environments.