Sha256: 86afeb520923f91b7da650b02e03371492a61800d4826314446083450db21f3b
Contents?: true
Size: 826 Bytes
Versions: 50
Compression:
Stored size: 826 Bytes
Contents
class CopyFilenamesOfProcessingFailedImages < ActiveRecord::Migration[5.2] def up execute(<<-SQL) UPDATE pageflow_image_files SET attachment_on_s3_file_name = unprocessed_attachment_file_name, attachment_on_s3_content_type = unprocessed_attachment_content_type, attachment_on_s3_file_size = unprocessed_attachment_file_size, attachment_on_s3_updated_at = unprocessed_attachment_updated_at WHERE state = 'processing_failed'; SQL end def down execute(<<-SQL) UPDATE pageflow_image_files SET attachment_on_s3_file_name = NULL, attachment_on_s3_content_type = NULL, attachment_on_s3_file_size = NULL, attachment_on_s3_updated_at = NULL WHERE state = 'processing_failed'; SQL end end
Version data entries
50 entries across 50 versions & 1 rubygems