Commit Graph

5 Commits

Author SHA1 Message Date
Cody Cutrer b060df4c4e use where instead of conditions for partial indexes like Rails 4
Change-Id: I690b3be76137c57567bcb45b600bd606c631a5d1
Reviewed-on: https://gerrit.instructure.com/25783
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2013-10-29 22:21:02 +00:00
Cody Cutrer a318afb7dc rename concurrently: true to algorithm: :concurrently
for Rails 4 and Rails 3.2/postgres_ext compatibility

Change-Id: I960588c6c371606977dfc6b07df6083e67f53d37
Reviewed-on: https://gerrit.instructure.com/25684
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2013-10-29 20:34:13 +00:00
Cody Cutrer b7b5042b2c rename transaction attribute to disable_ddl_migration!
for Rails 4 compatibility

Change-Id: I7dd48ef8cce10e9e15536eebf3e4ab5aee365a40
Reviewed-on: https://gerrit.instructure.com/25686
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2013-10-29 20:33:53 +00:00
Cody Cutrer 33d1a8f7fe fix migrations so they can run transactionally
refs CNVS-3902

even if the preference is that they don't

test plan:
 * bring up a fresh database
 * it should not fail

Change-Id: I5e7b2cf8479de4b3f1564ee65cd1cb456ae4674e
Reviewed-on: https://gerrit.instructure.com/17873
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
QA-Review: Clare Hetherington <clare@instructure.com>
2013-02-28 07:56:37 -07:00
Jon Jensen 9c4aeea0b1 short self enrollment code support, closes #8587
adds a 6-character self enrollment code. the longer version is still
supported (since links may be in the wild). courses that already have
self enrollment enabled will get a new 6-char code when someone self-
enrolls or goes to the course settings page.

test plan:
1. on the old code, create a course and enable self enrollment
2. save the self enrollment url (for step 6)
3. on this new code, go to the course settings page
4. confirm that you see the new 6-char code in the link
5. confirm that the code was saved on the course (check db or console)
6. as a student, confirm that you can enroll using the old link
7. as a student, confirm that you can enroll using the new link
8. create another course and enable self enrollment
9. as a student, confirm that you can enroll using the new link

Change-Id: I6d549b50febc3dcb596a7c6b882701aa58b5441b
Reviewed-on: https://gerrit.instructure.com/10835
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jon Jensen <jon@instructure.com>
2012-05-23 13:33:32 -06:00