2020-05-02 19:06:34 +00:00
|
|
|
require('dotenv').config();
|
|
|
|
|
|
|
|
module.exports = {
|
2020-05-04 14:02:31 +00:00
|
|
|
development: {
|
|
|
|
client: 'pg',
|
|
|
|
connection: process.env.DATABASE_URL,
|
|
|
|
migrations: {
|
|
|
|
directory: './data/migrations',
|
|
|
|
},
|
|
|
|
seeds: { directory: './data/seeds' },
|
|
|
|
useNullAsDefault: true,
|
|
|
|
},
|
2020-05-02 19:06:34 +00:00
|
|
|
|
2020-05-04 14:02:31 +00:00
|
|
|
testing: {
|
|
|
|
client: 'pg',
|
|
|
|
connection: process.env.DATABASE_URL,
|
|
|
|
migrations: {
|
|
|
|
directory: './data/migrations',
|
|
|
|
},
|
|
|
|
seeds: { directory: './data/seeds' },
|
|
|
|
useNullAsDefault: true,
|
|
|
|
},
|
2020-05-02 19:06:34 +00:00
|
|
|
|
2020-05-04 14:02:31 +00:00
|
|
|
production: {
|
|
|
|
client: 'pg',
|
|
|
|
connection: process.env.DATABASE_URL,
|
|
|
|
migrations: {
|
|
|
|
directory: './data/migrations',
|
|
|
|
},
|
|
|
|
seeds: { directory: './data/seeds' },
|
|
|
|
useNullAsDefault: true,
|
|
|
|
},
|
|
|
|
};
|