Wrap db:setup with Chewy.strategy(:mastodon) (#24302)

th-downstream
Robert R George 2 years ago committed by GitHub
parent a766804e02
commit 782669a042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
Dir[Rails.root.join('db', 'seeds', '*.rb')].sort.each do |seed| Chewy.strategy(:mastodon) do
load seed Dir[Rails.root.join('db', 'seeds', '*.rb')].sort.each do |seed|
load seed
end
end end

Loading…
Cancel
Save