Skip to content

Commit

Permalink
Ensure SQLite dumps are uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
northeastprince authored Sep 26, 2024
1 parent 87228ee commit 4006ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/database_dump/processed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def process
Tempfile.create do |io|
dump DatabaseDump::TABLES, to: io.path

file.attach io:, filename: "#{name.delete(",").tr(" ", "-")}.sql"
file.attach io: File.open(io), filename: "#{name.delete(",").tr(" ", "-")}.sql"
record :processed
end
end
Expand Down

0 comments on commit 4006ada

Please sign in to comment.