title: Knex.js: Create table and insert data
body: <p>Given that I have a Knex.js script like this:</p>
  
  <pre><code>exports.up = function(knex, Promise) {
      return knex.schema.createTable('persons', function(table) {
          table.increments('id').primary();
          table.string('name').notNullable();
      });
  };
  </code></pre>
  
  <p>which currently creates a table.</p>
  
  <p>How do I add subsequent insert statements to this script?</p>
  
  <p>What I want to do is add a line like this (or similar):</p>
  
  <pre><code>knex.insert({id: 1, name: 'Test'}).into('persons')
  </code></pre>
  
  <p>I'm not sure I understand how this promise-based approach works. Am I supposed to write another script with insert statements? Or can I somehow append them to my existing script?</p>
  
  <p>Unfortunately, I don't find any <em>complete</em> example of create + insert in Knex.js documentation.</p>