Skip to content

Commit

Permalink
Update 20230526212613_convert_to_active_storage.rb
Browse files Browse the repository at this point in the history
Fix #1298
  • Loading branch information
CloCkWeRX authored Jun 29, 2024
1 parent e107edb commit 7cdd31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20230526212613_convert_to_active_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def up
end

ActiveRecord::Base.connection.raw_connection.then do |conn|
if conn.is_a?(PG::Connection)
if conn.is_a?(::PG::Connection)
conn.prepare('active_storage_blobs', <<-SQL)
INSERT INTO active_storage_blobs (
key, filename, content_type, metadata, byte_size, checksum, created_at
Expand Down

0 comments on commit 7cdd31f

Please sign in to comment.