Migrations and tweaks to facilitate sqlite-postgres switch

This commit is contained in:
2013-09-22 00:50:41 -07:00
parent 84525ca65f
commit df0e91c4ee
11 changed files with 106 additions and 41 deletions

View File

@@ -0,0 +1,54 @@
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
# development:
# adapter: sqlite3
# database: db/development.sqlite3
# pool: 5
# timeout: 5000
development:
adapter: postgresql
encoding: unicode
database: YOUR_DATABASE_development
host: localhost
pool: 5
username: YOUR_USERNAME_HERE
password: YOUR_PASSWORD_HERE
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
# test:
# adapter: sqlite3
# database: db/test.sqlite3
# pool: 5
# timeout: 5000
test:
adapter: postgresql
encoding: unicode
database: YOUR_DATABASE_test
host: localhost
pool: 5
username: YOUR_USERNAME_HERE
password: YOUR_PASSWORD_HERE
# production:
# adapter: sqlite3
# database: db/production.sqlite3
# pool: 5
# timeout: 5000
production:
adapter: postgresql
encoding: unicode
database: YOUR_DATABASE_production
host: localhost
pool: 5
username: YOUR_USERNAME_HERE
password: YOUR_PASSWORD_HERE