diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-11 22:00:28 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-11 22:00:28 -0500 |
commit | 6b2f132842ef77edf5ed878979abb1dcb4aaf976 (patch) | |
tree | 78add436a945b762d7802cf95cade71bb45e2ad5 | |
parent | c6bb414b57a2ae8c6927826b143027f5c43dada9 (diff) | |
download | thoughts-6b2f132842ef77edf5ed878979abb1dcb4aaf976.tar.gz thoughts-6b2f132842ef77edf5ed878979abb1dcb4aaf976.tar.bz2 thoughts-6b2f132842ef77edf5ed878979abb1dcb4aaf976.zip |
Widened blog body column to 16 megabytes
-rw-r--r-- | db/migrate/20250112025207_widen_blog_body_column.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 7 insertions, 2 deletions
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 @@ | |||
1 | class WidenBlogBodyColumn < ActiveRecord::Migration[7.1] | ||
2 | def change | ||
3 | change_column :blogs, :body, :text, limit: 16.megabytes - 1 | ||
4 | end | ||
5 | 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 @@ | |||
10 | # | 10 | # |
11 | # It's strongly recommended that you check this file into your version control system. | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 | ||
13 | ActiveRecord::Schema[7.1].define(version: 2024_12_07_200746) do | 13 | ActiveRecord::Schema[7.1].define(version: 2025_01_12_025207) do |
14 | create_table "active_storage_attachments", force: :cascade do |t| | 14 | create_table "active_storage_attachments", force: :cascade do |t| |
15 | t.string "name", null: false | 15 | t.string "name", null: false |
16 | t.string "record_type", null: false | 16 | t.string "record_type", null: false |
@@ -63,7 +63,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_12_07_200746) do | |||
63 | 63 | ||
64 | create_table "blogs", force: :cascade do |t| | 64 | create_table "blogs", force: :cascade do |t| |
65 | t.string "title" | 65 | t.string "title" |
66 | t.text "body" | 66 | t.text "body", limit: 16777215 |
67 | t.string "slug" | 67 | t.string "slug" |
68 | t.datetime "created_at", precision: nil, null: false | 68 | t.datetime "created_at", precision: nil, null: false |
69 | t.datetime "updated_at", precision: nil, null: false | 69 | t.datetime "updated_at", precision: nil, null: false |