Sha256: 2bcabb97da66e2bd28e9a1b81a07bcdabfefba9598c1e6126d362f8f3b64eb5c
Contents?: true
Size: 382 Bytes
Versions: 6
Compression:
Stored size: 382 Bytes
Contents
# frozen_string_literal: true class AddEnhancedTextworkOrganizationAsAuthor < ActiveRecord::Migration[5.2] def change official_paragraphs = Decidim::EnhancedTextwork::Paragraph.find_each.select do |paragraph| paragraph.coauthorships.count.zero? end official_paragraphs.each do |paragraph| paragraph.add_coauthor(paragraph.organization) end end end
Version data entries
6 entries across 6 versions & 1 rubygems