Skip to content

Instantly share code, notes, and snippets.

@tjschuck
Created December 29, 2010 21:06
Show Gist options
  • Save tjschuck/759069 to your computer and use it in GitHub Desktop.
Save tjschuck/759069 to your computer and use it in GitHub Desktop.
# In Gemfile...
group :development do
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
end
group :production do
gem 'mysql2'
end
# In database.yml
development:
adapter: sqlite3
database: db/development.sqlite3
production:
adapter: mysql2
encoding: utf8
database: project_name_production
username: whatever
password: password123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment