seed_dump
seed_dump copied to clipboard
Not working with ActionText::RichText
These are the values generated from db:seed:dump
. It seems like the ActionText::Content isn't dumped correctly.
ActionText::RichText.create!([
{name: "excerpt", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 1},
{name: "content", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 1},
{name: "excerpt", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 2},
{name: "content", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 2},
{name: "description", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Announcement", record_id: 1},
{name: "excerpt", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 3},
{name: "content", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 3}
])
Same here. Rails 6.1.1 Ruby 3.0.0p0 seed_sump 3.3.1
ActionText::RichText.create!([ {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 377}, {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 254}, {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 255}, {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 256}, {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 257}, ...
You can try this branch: https://github.com/Spone/seed_dump/tree/actiontext-support