Commit Graph

1 Commits

Author SHA1 Message Date
Evan Battaglia f32bf09676 MicrosoftGroup::UserMapping
closes INTEROP-6597
flag=none

Test plan:
- rake db:migrate
- try creating a MicrosoftGroup::UserMapping model. make sure Rails
  requires it to have both a root account and a user id (failing
  validation otherwise). Make sure Rails also fails validation if you
  try to create two records with the same user id and root account id.
- describe table (\d+ microsoft_groups_user_mappings) and check that
  root account id is non-nullable, the indexes look good,
  replica identity is on [root_account_id, id]
- Rollback migration (rake db:migrate:down VERSION=20210308210138) and
  check that table is gone

Change-Id: I2430eec8843494409e0026fbe761cc7945abf568
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/260311
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Evan Battaglia <ebattaglia@instructure.com>
Product-Review: Evan Battaglia <ebattaglia@instructure.com>
2021-03-22 16:30:48 +00:00