Lambda-School-Labs/allay-be

View on GitHub
data/migrations/20200219174528_tracks_table.js

Summary

Maintainability
A
1 hr
Test Coverage
exports.up = function (knex) {
  return knex.schema.createTable('tracks', tbl => {
    tbl.increments();
    tbl.string('track_name').notNullable().unique();
  });
};

exports.down = function (knex) {
  return knex.schema.dropTableIfExists('tracks');
};