eg.stub 281 B

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