From 7a83b1efe154ce171afc45909a17cfbadf935f32 Mon Sep 17 00:00:00 2001 From: Joshua Shaw Date: Wed, 11 Dec 2024 11:52:50 -0500 Subject: [PATCH] change column type --- ...ange_content_warnings_description_field_type.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 migrations/003_change_content_warnings_description_field_type.rb diff --git a/migrations/003_change_content_warnings_description_field_type.rb b/migrations/003_change_content_warnings_description_field_type.rb new file mode 100644 index 0000000..40257b1 --- /dev/null +++ b/migrations/003_change_content_warnings_description_field_type.rb @@ -0,0 +1,14 @@ +require 'db/migrations/utils' + +Sequel.migration do + + up do + $stderr.puts("Changing Content Warning description field from MediumBlob to Text") + + alter_table(:content_warning) do + set_column_type(:description, 'text') + end + + end + +end