34 lines
642 B
JavaScript
34 lines
642 B
JavaScript
require('dotenv').config();
|
|
|
|
module.exports = {
|
|
development: {
|
|
client: 'pg',
|
|
connection: process.env.DATABASE_URL,
|
|
migrations: {
|
|
directory: './data/migrations',
|
|
},
|
|
seeds: { directory: './data/seeds' },
|
|
useNullAsDefault: true,
|
|
},
|
|
|
|
testing: {
|
|
client: 'pg',
|
|
connection: process.env.DATABASE_URL,
|
|
migrations: {
|
|
directory: './data/migrations',
|
|
},
|
|
seeds: { directory: './data/seeds' },
|
|
useNullAsDefault: true,
|
|
},
|
|
|
|
production: {
|
|
client: 'pg',
|
|
connection: process.env.DATABASE_URL,
|
|
migrations: {
|
|
directory: './data/migrations',
|
|
},
|
|
seeds: { directory: './data/seeds' },
|
|
useNullAsDefault: true,
|
|
},
|
|
};
|