houdini/gems/houdini_upgrade/lib/houdini_upgrade.rb
2020-06-15 10:26:57 -05:00

31 lines
768 B
Ruby

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
require "houdini_upgrade/engine"
module HoudiniUpgrade
require 'houdini_upgrade/table_to_migrate'
UPLOADERS_TO_MIGRATE = [
TableToMigrate.new(:nonprofits, [:main_image,
:second_image,
:third_image,
:background_image,
:logo]),
TableToMigrate.new(:campaigns, [
:main_image,
:background_image,
:banner_image
]),
TableToMigrate.new(:events, [
:main_image,
:background_image
]),
TableToMigrate.new(:image_attachments, [
:file
]),
TableToMigrate.new(:profiles, [
:picture
])
]
end