Commit Graph

3 Commits

Author SHA1 Message Date
Landon Wilkins 58e4df2494 da licença part 37
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: Ibc881431ca51b7da3b0d3182033e95ebf7d6e524
Reviewed-on: https://gerrit.instructure.com/110067
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 22:44:36 +00:00
Cody Cutrer 884534ffa5 Rails 5: fix Rails version migration deprecation warning
also pins all migrations to Rails 4.2 semantics

Change-Id: I386566f7a1f3e3e8aa31675f467c87c443457aee
Reviewed-on: https://gerrit.instructure.com/95571
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2016-11-17 23:46:22 +00:00
Spencer Olson cdd029a5c3 add close_date column to grading_periods table
in addition, if no close date is provided on
creation of a grading period, the end date
will be used as the close date.

closes CNVS-26714

test plan:
* run the migration and verify it succeeds:
  $ bundle exec rake db:migrate
* open a rails console and verify the close_date
  attribute exists and it is a datetime:
  $ bundle exec rails console
  $ GradingPeriod
* verify:
  1) you can create a grading period with an end
     date but without a close date. the close date
     will get set to the end date that you provided.
  2) you can create a grading period with a unique
     end date and close date. the close date must
     be on or after the end date. if you attempt to
     create a grading period with a close date that
     is before the end date, it should fail.

Change-Id: I1a180af4eb8c23703e3844d2e93159010f0c9e58
Reviewed-on: https://gerrit.instructure.com/84340
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2016-07-11 15:03:39 +00:00