Skip to content

Instantly share code, notes, and snippets.

@giovanniantonaccio
Created July 12, 2019 20:09
Show Gist options
  • Save giovanniantonaccio/db457601c2892306459f4be1d15b6f97 to your computer and use it in GitHub Desktop.
Save giovanniantonaccio/db457601c2892306459f4be1d15b6f97 to your computer and use it in GitHub Desktop.
How to configure sequelize folders
const { resolve } = require('path');
module.exports = {
'config': resolve(__dirname, 'src', 'config', 'database.js'),
'models-path': resolve(__dirname, 'src', 'app', 'models'),
'migrations-path': resolve(__dirname, 'src', 'database', 'migrations'),
'seeders-path': resolve(__dirname, 'src', 'database', 'seeds'),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment