FIX: prevent minimum_required_tags on category being set to null (#6703)

* FIX: prevent minimum_required_tags on category being set to null

* add migration for NOT_NULL constraint for minimum_required_tags

* add specs
This commit is contained in:
Maja Komel
2018-11-29 18:10:14 +01:00
committed by Régis Hanol
parent 5b6c1b1670
commit 4a8f21d387
4 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
class AddNotNullMinimumRequiredTagsOnCategories < ActiveRecord::Migration[5.2]
def change
change_column_null :categories, :minimum_required_tags, false, 0
end
end