budget/db/migrate/20231011024748_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb
2023-10-10 23:01:12 -04:00

8 lines
292 B
Ruby

# This migration comes from active_storage (originally 20211119233751)
class RemoveNotNullOnActiveStorageBlobsChecksum < ActiveRecord::Migration[6.0]
def change
return unless table_exists?(:active_storage_blobs)
change_column_null(:active_storage_blobs, :checksum, true)
end
end