coffee.stub 279 B

12345678910111213
  1. exports.up = (knex, Promise) ->
  2. <% if (d.tableName) { %>
  3. knex.schema.createTable "<%= d.tableName %>", (t) ->
  4. t.increments()
  5. t.timestamp()
  6. <% } %>
  7. exports.down = (knex, Promise) ->
  8. <% if (d.tableName) { %>
  9. knex.schema.dropTable "<%= d.tableName %>"
  10. <% } %>