Skip to content

Commit 2aaddef

Browse files
authored
Merge pull request #156 from MITLibraries/tco-125-fix-migration
Change existing migration to create Category
2 parents 8e4fefe + 6d68d87 commit 2aaddef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
class ChangeColumnNullConfirmationCategory < ActiveRecord::Migration[7.1]
22
def change
3+
Category.find_or_create_by(
4+
name: 'Flagged',
5+
description: 'A search which has sensitive information that should be excluded from further processing.'
6+
)
7+
38
change_column_null :confirmations, :category_id, false, Category.find_by(name: 'Flagged').id
49
end
510
end

0 commit comments

Comments
 (0)