aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-05-29 16:24:48 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-05-29 16:24:48 +0200
commitf27a0c88e0e48b1b4f4b64590443e0bb23c6738e (patch)
tree43c16bc1057994f4bdad9c9fb3b6e2f86257be8b /test
parent4cc241dc6c04913b3c84bb35d9cffd1a58a1d61f (diff)
downloadrails-f27a0c88e0e48b1b4f4b64590443e0bb23c6738e.tar.gz
rails-f27a0c88e0e48b1b4f4b64590443e0bb23c6738e.tar.bz2
rails-f27a0c88e0e48b1b4f4b64590443e0bb23c6738e.zip
Use mediumtext-size columns
Room to grow, room to flourish!
Diffstat (limited to 'test')
-rw-r--r--test/dummy/db/migrate/2018052816_create_action_text_tables.rb2
-rw-r--r--test/dummy/db/schema.rb2
2 files changed, 2 insertions, 2 deletions
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