diff options
Diffstat (limited to 'db/migrate/20210708134446_remove_not_null_constraint_from_terms.rb')
-rw-r--r-- | db/migrate/20210708134446_remove_not_null_constraint_from_terms.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20210708134446_remove_not_null_constraint_from_terms.rb b/db/migrate/20210708134446_remove_not_null_constraint_from_terms.rb new file mode 100644 index 00000000000..82abfeb57f9 --- /dev/null +++ b/db/migrate/20210708134446_remove_not_null_constraint_from_terms.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class RemoveNotNullConstraintFromTerms < ActiveRecord::Migration[6.1] + def up + change_column_null :application_setting_terms, :terms, true + end + + def down + change_column_null :application_setting_terms, :terms, false + end +end |