Lambda-School-Labs/grants-be

View on GitHub
knex/migrations/20200516153900_update-writer-profile-website-column-name.js

Summary

Maintainability
A
0 mins
Test Coverage

exports.up = function(knex) {
  return knex.schema.table('writer_profiles', tbl => {
    tbl.renameColumn('website_url', 'website');
  })
};

exports.down = function(knex) {
  return knex.schema.table('writer_profiles', tbl => {
    tbl.renameColumn('website', 'website_url');
  })
};