knexfile.js
module.exports = {
development: {
client: 'pg',
connection: process.env.DATABASE_URL || 'postgres://postgres@localhost:5432/our_wedding_heroes',
migrations: {
tableName: 'knex_migrations',
},
seeds: {
directory: './seeds',
},
},
production: {
client: 'pg',
connection: process.env.DATABASE_URL,
pool: {
min: 2,
max: 10,
},
migrations: {
tableName: 'knex_migrations',
},
seeds: {
directory: './seeds',
},
},
};