Sha256: d90611fc46394071de4e321a2770fed55546f07ab1305e6bdc09f9095b33fb3f
Contents?: true
Size: 348 Bytes
Versions: 50
Compression:
Stored size: 348 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| next unless model.table_exists? model.find_each(&:touch) end end def down; end end
Version data entries
50 entries across 50 versions & 1 rubygems