Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Up to this point, all the code in this book has been run in development mode. Rails supports three different environments for running applications. Each of them has its own database, as well as its own settings:
Development is the default mode. In development mode, Rails loads and reloads code every time a request is made, making it easy for you to see changes without a cache getting in the way. It’s also typical to use SQLite as the database, as Rails isn’t going to be working at high speed anyway.
Test mode runs like production mode, without reloading code, and has its own database so that tests can run against a consistent database. You could use a fancier database for test mode (and might want to if you suspect strange database interactions), but for getting started, the default of SQLite is fine.