ls.stub 281 B

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