Artifact Content
Not logged in

Artifact 86b8da2f48c6f6ae0684fb812d0779b71225be14:


module.exports = {
  up: sequelize => {
    return sequelize.query('ALTER TABLE "public"."Users" ' +
      'ADD COLUMN "invite_code" UUID UNIQUE REFERENCES "public"."Invites"(code) ON UPDATE CASCADE ON DELETE SET NULL;')
  },
  down: sequelize => {
    return sequelize.query('ALTER TABLE "public"."Users" ' +
      'DROP COLUMN "invite_code"')
  }
}