Skip to content

Instantly share code, notes, and snippets.

@TheNicholasNick
Created January 7, 2009 01:32
Show Gist options
  • Save TheNicholasNick/44127 to your computer and use it in GitHub Desktop.
Save TheNicholasNick/44127 to your computer and use it in GitHub Desktop.
ruby-merb@localhost ~/merb-project $ nano config/database.yml
ruby-merb@localhost ~/merb-project $ cat config/database.yml
---
# This is a sample database file for the DataMapper ORM
development: &defaults
# These are the settings for repository :default
adapter: mysql
host: localhost
username: root
password:
database: dev
# Add more repositories
# repositories:
# repo1:
# adapter: sqlite3
# database: sample_1_development.db
# repo2:
# ...
test:
<<: *defaults
database: test
# repositories:
# repo1:
# database: sample_1_test.db
production:
<<: *defaults
database: prod
# repositories:
# repo1:
# database: sample_production.db
rake:
<<: *defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment