about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authorRobert R George <rgeorge@midnightweb.net>2023-03-29 00:58:27 -0700
committerGitHub <noreply@github.com>2023-03-29 09:58:27 +0200
commit782669a0429694a69d8cbce8b04f328260f7f606 (patch)
treefe0e20fe8a6538008e9572226370fe80f0eaaeec /db
parenta766804e02dfe3d2c47267d14f1797eca93c837b (diff)
Wrap db:setup with Chewy.strategy(:mastodon) (#24302)
Diffstat (limited to 'db')
-rw-r--r--db/seeds.rb6
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