Put the rename uploader column into a change method

This commit is contained in:
Eric 2020-05-05 11:46:25 -05:00
parent ed07c7ce3c
commit 98c78f6267

View file

@ -1,9 +1,11 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class RenameUploaderColumns < ActiveRecord::Migration[5.2]
def change
require "houdini_upgrade"
HoudiniUpgrade::UPLOADERS_TO_MIGRATE.each do |table|
table.fields.each do |field|
rename_column table.name, field.name, field.migrated_name
end
end
end
end