backend/knexfile.js

34 lines
642 B
JavaScript
Raw Normal View History

2020-05-02 19:06:34 +00:00
require('dotenv').config();
module.exports = {
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
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
production: {
client: 'pg',
connection: process.env.DATABASE_URL,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
useNullAsDefault: true,
},
};