Skip to content

Commit

Permalink
Merge pull request codeforjapan#597 from codeforjapan/fix-migrations
Browse files Browse the repository at this point in the history
Fix a migration file
  • Loading branch information
ayuki-joto authored Mar 18, 2024
2 parents 54a1f52 + 518c18f commit 5579362
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ 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
Expand Down

0 comments on commit 5579362

Please sign in to comment.