Artifact Content
Not logged in

Artifact 13125d3ee570a7ddf1f58831cac42b53b1e24bf6:


module.exports = {
  up: sequelize => {
    return sequelize.query('ALTER TABLE "public"."ActivityLogs"' +
      'ADD FOREIGN KEY ("user_id") REFERENCES "public"."Users"("id") ON DELETE SET NULL')
  },
  down: sequelize => {
    return sequelize.query('ALTER TABLE "public"."ActivityLogs"' +
      'DROP CONSTRAINT "Activity_logs_user_id_fkey"')
  }
}