// Creates the reminders table.

var Knex = require('knex');

var knex = Knex.initialize({
  client: 'pg',
  connection: process.env.DATABASE_URL
});

var createTable = function() {
  return knex.schema.createTable('reminders', function(table) {
    table.increments('reminder_id').primary();
    table.dateTime('created_at');
    table.string('citation', 100);
    table.string('phone', 100);
    table.boolean('sent', 100);
  });
};

var close = function() {
  return knex.client.pool.destroy();
};

createTable()
  .then(close)
  .then(function() {
    console.log('Tables created.')
  });

// Creates the reminders table.

var Knex = require('knex');

var knex = Knex.initialize({
  client: 'pg',
  connection: process.env.DATABASE_URL
});

var createTable = function() {
  return knex.schema.createTable('reminders', function(table) {
    table.increments('reminder_id').primary();
    table.dateTime('created_at');
    table.string('citation', 100);
    table.string('phone', 100);
    table.boolean('sent', 100);
  });
};

var close = function() {
  return knex.client.pool.destroy();
};

createTable()
  .then(close)
  .then(function() {
    console.log('Tables created.');
  });

Add semicolon, like a javascript conformist.
Add semicolon, like a javascript conformist.
