Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Make database.yml optional in Rails
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
MIT-LICENSE
README.markdown
Rakefile
rails-default-database.gemspec

README.markdown

Rails Default Database

Tired of cp config/database.example.yml config/database.yml? Me too. That's why I wrote this Gem. Simply add this line to your Gemfile and PostgreSQL, MySQL, or SQLite3 (depending on which of the 3 is in your Gemfile) will be automatically configured with Rails defaults:

gem 'rails-default-database'

You can still override the defaults by creating config/database.yml. Use rake db:config to create config/database.yml with the defaults that would have been assumed.

License

Copyright (c) Tim Pope. MIT License.

Something went wrong with that request. Please try again.