Sha256: ebdbb026e1ea070479b55ce769bae736ff09fca74404707e92a271eb2d39aa71
Contents?: true
Size: 309 Bytes
Versions: 40
Compression:
Stored size: 309 Bytes
Contents
# frozen_string_literal: true class FixReferenceForAllResources < ActiveRecord::Migration[5.1] def up models = ActiveRecord::Base.descendants.select { |c| c.included_modules.include?(Decidim::HasReference) } models.each do |model| model.find_each(&:touch) end end def down; end end
Version data entries
40 entries across 40 versions & 1 rubygems