From 6b2f132842ef77edf5ed878979abb1dcb4aaf976 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 11 Jan 2025 22:00:28 -0500 Subject: Widened blog body column to 16 megabytes --- db/migrate/20250112025207_widen_blog_body_column.rb | 5 +++++ db/schema.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20250112025207_widen_blog_body_column.rb (limited to 'db') diff --git a/db/migrate/20250112025207_widen_blog_body_column.rb b/db/migrate/20250112025207_widen_blog_body_column.rb new file mode 100644 index 0000000..f65aaea --- /dev/null +++ b/db/migrate/20250112025207_widen_blog_body_column.rb @@ -0,0 +1,5 @@ +class WidenBlogBodyColumn < ActiveRecord::Migration[7.1] + def change + change_column :blogs, :body, :text, limit: 16.megabytes - 1 + end +end diff --git a/db/schema.rb b/db/schema.rb index b01ed43..795a986 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_12_07_200746) do +ActiveRecord::Schema[7.1].define(version: 2025_01_12_025207) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -63,7 +63,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_12_07_200746) do create_table "blogs", force: :cascade do |t| t.string "title" - t.text "body" + t.text "body", limit: 16777215 t.string "slug" t.datetime "created_at", precision: nil, null: false t.datetime "updated_at", precision: nil, null: false -- cgit 1.4.1