title: Prevent sequelize to drop database in node.js app
body: <p>First of all, I am using node.js with sequelize ORM and Postgres SQL.</p>
  
  <p>I have 2 simple questions:</p>
  
  <ol>
  <li><p>Every time I rerun my node application sequelize is dropping and creating all tables in database. How to prevent it from doing that (I don't want my records in database to be deleted)? I have tried to set my NODE_ENV to test but it didn't help.</p></li>
  <li><p>How does sequelize migration knows where it stopped (which migration have executed and which not). 
  When I was using database migration in Grails framework, for example, it automatically created a table in the database where it kept all migration timestamps that executed before and when I rerun my application it looks at that table and knows which migrations are already done and which are not. 
  I don't see any table when using node/sequelize, so how it works? :)</p></li>
  </ol>
  
  <p>Thanks,
  Ivan  </p>