2020-05-02 19:06:34 +00:00
|
|
|
require('dotenv').config();
|
2020-05-07 13:10:15 +00:00
|
|
|
const { db_url } = require('./config/config');
|
2020-05-02 19:06:34 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2020-05-04 14:02:31 +00:00
|
|
|
development: {
|
|
|
|
client: 'pg',
|
2020-05-07 13:10:15 +00:00
|
|
|
connection: db_url,
|
2020-05-04 14:02:31 +00:00
|
|
|
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',
|
2020-05-07 13:10:15 +00:00
|
|
|
connection: db_url,
|
2020-05-04 14:02:31 +00:00
|
|
|
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',
|
2020-05-07 13:10:15 +00:00
|
|
|
connection: db_url,
|
2020-05-04 14:02:31 +00:00
|
|
|
migrations: {
|
|
|
|
directory: './data/migrations',
|
|
|
|
},
|
|
|
|
seeds: { directory: './data/seeds' },
|
|
|
|
useNullAsDefault: true,
|
|
|
|
},
|
|
|
|
};
|