Move the tables and columns to migrate into a single place
This commit is contained in:
parent
fd6888938f
commit
e19e60322b
1 changed files with 25 additions and 1 deletions
|
@ -4,5 +4,29 @@
|
||||||
require "houdini_upgrade/engine"
|
require "houdini_upgrade/engine"
|
||||||
|
|
||||||
module HoudiniUpgrade
|
module HoudiniUpgrade
|
||||||
# Your code goes here...
|
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,
|
||||||
|
:second_image,
|
||||||
|
:third_image,
|
||||||
|
:background_image,
|
||||||
|
:logo
|
||||||
|
]),
|
||||||
|
TableToMigrate.new(:events, [
|
||||||
|
:main_image,
|
||||||
|
:background_image
|
||||||
|
]),
|
||||||
|
TableToMigrate.new(:image_attachments, [
|
||||||
|
:file
|
||||||
|
]),
|
||||||
|
TableToMigrate.new(:profiles, [
|
||||||
|
:picture
|
||||||
|
])
|
||||||
|
]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue