'use strict';

const colName = 'archivedAt';

/**
 * Add a `archivedAt` column to collectives.
 */
module.exports = {
  up: async (queryInterface, Sequelize) => {
    const colParams = { type: Sequelize.DATE };
    await queryInterface.addColumn('Collectives', colName, colParams);
    await queryInterface.addColumn('CollectiveHistories', colName, colParams);
  },

  down: async queryInterface => {
    await queryInterface.removeColumn('Collectives', colName);
    await queryInterface.removeColumn('CollectiveHistories', colName);
  },
};

'use strict';

const colName = 'archivedAt';

/**
 * Add a `archivedAt` column to collectives.
 */
module.exports = {
  up: async (queryInterface, Sequelize) => {
    const colParams = { type: Sequelize.DATE };
    await queryInterface.addColumn('Collectives', colName, colParams);
  },

  down: async queryInterface => {
    await queryInterface.removeColumn('Collectives', colName);
  },
};

Remove addColumn and removeColumn for archiveAt in collectiveHistories
Remove addColumn and removeColumn for archiveAt in collectiveHistories

I'm removing this because I just realized archiveAt already exist in collectiveHistories table
