Skip to content

Commit

Permalink
Merge pull request #156 from MITLibraries/tco-125-fix-migration
Browse files Browse the repository at this point in the history
Change existing migration to create Category
  • Loading branch information
JPrevost authored Dec 11, 2024
2 parents 8e4fefe + 6d68d87 commit 2aaddef
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
class ChangeColumnNullConfirmationCategory < ActiveRecord::Migration[7.1]
def change
Category.find_or_create_by(
name: 'Flagged',
description: 'A search which has sensitive information that should be excluded from further processing.'
)

change_column_null :confirmations, :category_id, false, Category.find_by(name: 'Flagged').id
end
end

0 comments on commit 2aaddef

Please sign in to comment.