diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-05-29 16:24:48 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-05-29 16:24:48 +0200 |
commit | f27a0c88e0e48b1b4f4b64590443e0bb23c6738e (patch) | |
tree | 43c16bc1057994f4bdad9c9fb3b6e2f86257be8b | |
parent | 4cc241dc6c04913b3c84bb35d9cffd1a58a1d61f (diff) | |
download | rails-f27a0c88e0e48b1b4f4b64590443e0bb23c6738e.tar.gz rails-f27a0c88e0e48b1b4f4b64590443e0bb23c6738e.tar.bz2 rails-f27a0c88e0e48b1b4f4b64590443e0bb23c6738e.zip |
Use mediumtext-size columns
Room to grow, room to flourish!
-rw-r--r-- | db/migrate/201805281641_create_action_text_tables.rb | 2 | ||||
-rw-r--r-- | test/dummy/db/migrate/2018052816_create_action_text_tables.rb | 2 | ||||
-rw-r--r-- | test/dummy/db/schema.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/db/migrate/201805281641_create_action_text_tables.rb b/db/migrate/201805281641_create_action_text_tables.rb index 80bcb5cdbc..872987749a 100644 --- a/db/migrate/201805281641_create_action_text_tables.rb +++ b/db/migrate/201805281641_create_action_text_tables.rb @@ -2,7 +2,7 @@ class CreateActionTextTables < ActiveRecord::Migration[5.2] def change create_table :action_text_rich_texts do |t| t.string :name, null: false - t.text :body, null: false + t.text :body, limit: 16777215, null: false t.references :record, null: false, polymorphic: true, index: false t.datetime :created_at, null: false diff --git a/test/dummy/db/migrate/2018052816_create_action_text_tables.rb b/test/dummy/db/migrate/2018052816_create_action_text_tables.rb index 80bcb5cdbc..872987749a 100644 --- a/test/dummy/db/migrate/2018052816_create_action_text_tables.rb +++ b/test/dummy/db/migrate/2018052816_create_action_text_tables.rb @@ -2,7 +2,7 @@ class CreateActionTextTables < ActiveRecord::Migration[5.2] def change create_table :action_text_rich_texts do |t| t.string :name, null: false - t.text :body, null: false + t.text :body, limit: 16777215, null: false t.references :record, null: false, polymorphic: true, index: false t.datetime :created_at, null: false diff --git a/test/dummy/db/schema.rb b/test/dummy/db/schema.rb index 67668b6e78..30bf844e9c 100644 --- a/test/dummy/db/schema.rb +++ b/test/dummy/db/schema.rb @@ -14,7 +14,7 @@ ActiveRecord::Schema.define(version: 2018_02_12_164506) do create_table "action_text_rich_texts", force: :cascade do |t| t.string "name", null: false - t.text "body", null: false + t.text "body", limit: 16777215, null: false t.string "record_type", null: false t.integer "record_id", null: false t.datetime "created_at", null: false |