diff options
author | Robert R George <rgeorge@midnightweb.net> | 2023-03-29 00:58:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 09:58:27 +0200 |
commit | 782669a0429694a69d8cbce8b04f328260f7f606 (patch) | |
tree | fe0e20fe8a6538008e9572226370fe80f0eaaeec | |
parent | a766804e02dfe3d2c47267d14f1797eca93c837b (diff) |
Wrap db:setup with Chewy.strategy(:mastodon) (#24302)
-rw-r--r-- | db/seeds.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 1ca300de7..c01e83f1d 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true -Dir[Rails.root.join('db', 'seeds', '*.rb')].sort.each do |seed| - load seed +Chewy.strategy(:mastodon) do + Dir[Rails.root.join('db', 'seeds', '*.rb')].sort.each do |seed| + load seed + end end |