aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-09-12 15:51:06 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-09-12 15:51:06 -0700
commit531d7dd584267e81ba57d4de7f0fe21b18a83cbb (patch)
tree1e65cf6bda11cc03bdcebdc9183a84abb5aef58c /db
parent3431c0b3eeaf284901bd9aa4265c578207d4c820 (diff)
downloadrails-531d7dd584267e81ba57d4de7f0fe21b18a83cbb.tar.gz
rails-531d7dd584267e81ba57d4de7f0fe21b18a83cbb.tar.bz2
rails-531d7dd584267e81ba57d4de7f0fe21b18a83cbb.zip
Never mind on allowing blank
More hassle than its worth. Just account for the fact that rich text can be blank instead, but continue to create the record.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/201805281641_create_action_text_tables.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/201805281641_create_action_text_tables.rb b/db/migrate/201805281641_create_action_text_tables.rb
index 872987749a..ed97ad46c0 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, limit: 16777215, null: false
+ t.text :body, limit: 16777215
t.references :record, null: false, polymorphic: true, index: false
t.datetime :created_at, null: false