Change older Paperclip database migrations for consistency (#30204)

This commit is contained in:
Claire 2024-05-20 16:59:27 +02:00 committed by GitHub
parent 2bcbeed951
commit 00cf8d3748
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 48 additions and 8 deletions

View file

@ -3,7 +3,11 @@
class AddAttachmentDataToImports < ActiveRecord::Migration[4.2]
def self.up
change_table :imports do |t|
t.attachment :data
# The following corresponds to `t.attachment :data` in an older version of Paperclip
t.string :data_file_name
t.string :data_content_type
t.integer :data_file_size
t.datetime :data_updated_at
end
end