rails 4.2: remove not-null constraint on brand config variables

since it defaults to an empty hash, it doesn't bother
serializing one when it isn't needed

refs #CNVS-26056

Change-Id: I2515257c8c58aabd26c50c18330361e49cd8b0b1
Reviewed-on: https://gerrit.instructure.com/71133
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
This commit is contained in:
James Williams 2016-01-29 07:45:02 -07:00
parent 36c18dfccf
commit 1a9fb4ceea
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
class RemoveNotNullOnVariables < ActiveRecord::Migration
tag :predeploy
def up
change_column_null :brand_configs, :variables, true
end
def down
change_column_null :brand_configs, :variables, false
end
end