The most common is to ignore this file. Moreover, we usually try to allow each developer use any database that is supported by Rails. Granted that this is not always possible, especially if there is a need to bypass ActiveRecord in some occasions. Nevertheless, for most simple applications this can be accomplished.
What we do is add these lines to .gitignore among other things we ignore:
db/*.sqlite3
config/database.yml
Then we include a database.yml.example file in config, where we keep the recommended way to configure the database for the application. Developers can copy that file as their database.yml, or select a different database.