sqlite3 to postgresql
Closed this issue ยท 5 comments
tried everything but cannot figure out plz post with empty postgresql database set and how to set it
@jrenna100 Have you changed config/database.yml to support postgres? Here is an example:
development:
adapter: postgresql
encoding: unicode
database: [dev_dbname]
host: localhost
pool: 5
username: [dbusername]
password: [dbpassword]
test:
adapter: postgresql
encoding: unicode
database: [test_dbname]
host: localhost
pool: 5
username: [dbusername]
password: [dbpassword]
production:
adapter: postgresql
encoding: unicode
database: [prod_dbname]
host: [prod_host]
pool: 5
username: [dbusername]
password: [dbpassword]
Replace the above values with your actual credentials.
NOTE: And also move the pg gem into group :development if you wanna use it it development.
@ArisNance That looks good ๐ . It's similar but everything is stored in the ENV variables as it's meant to be. @jrenna100 You might wanna use a similar config with the ENV config set for production env. For Development you could just hardcode the the plain credentials as it won't make any difference.
thanks guys it worked! had psql set up wrong. found another bug tho i think gonna post new thread
@jrenna100 Cool. I am closing this issue :)