Skip to content

Action Text to Richer Text Rake

namespace :action_text_data do
desc 'Migrating Action Text Data to Richer Text'
task migrate: :environment do
ActionTextRichText.find_each do |action_text|
RicherTextRichText.create name: action_text.name,
body: action_text.body,
record_type: action_text.record_type,
record_id: action_text.record_id
end
end
end