Make rich_text searchable and renderable in pdf

This commit is contained in:
david 2024-07-21 01:41:08 +02:00
parent 6d3a269231
commit 879670983d
6 changed files with 26 additions and 5 deletions

View file

@ -0,0 +1,5 @@
class AddBodyTextToActionTextRichTexts < ActiveRecord::Migration[7.1]
def change
add_column :action_text_rich_texts, :body_text, :text
end
end

3
db/schema.rb generated
View file

@ -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_07_16_182333) do
ActiveRecord::Schema[7.1].define(version: 2024_07_20_231941) do
create_table "action_text_rich_texts", force: :cascade do |t|
t.string "name", null: false
t.text "body"
@ -18,6 +18,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_07_16_182333) do
t.bigint "record_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.text "body_text"
t.index ["record_type", "record_id", "name"], name: "index_action_text_rich_texts_uniqueness", unique: true
end