mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -0,0 +1,5 @@
|
||||
class AddNotNullMinimumRequiredTagsOnCategories < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column_null :categories, :minimum_required_tags, false, 0
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user