Commit graph

1187 commits

Author SHA1 Message Date
Eric
0248fb5663 Update rails in houdini_upgrade.gemspec 2020-05-27 12:32:32 -05:00
Eric
d0393fa2d7 Upgrade to Rails 6.0.3 2020-05-27 12:32:31 -05:00
Eric
54c4b76693 Add Active Storage types 2020-05-27 12:32:31 -05:00
Eric
34882dc099 Make additional updates to ActiveStorage 2020-05-27 12:32:31 -05:00
Eric
a7cb3419cd Migrate many image calls to Active Storage 2020-05-27 12:32:31 -05:00
Eric
057007e85e Profile doesn't have a default picture now 2020-05-27 12:32:31 -05:00
Eric
03a270b61b profile.json.jbuilder now gets the pic_tiny url by variant 2020-05-27 12:32:31 -05:00
Eric
09170bcd89 Correct the default image paths for profiles and nonprofits 2020-05-27 12:32:31 -05:00
Eric
2e0a3a6c03 Create default image attachments for all models 2020-05-27 12:32:31 -05:00
Eric
60eb01c2ee Add has_one_attached_with_default 2020-05-27 12:32:31 -05:00
Eric
afecb1d63f Rename attribute to attribute_name 2020-05-27 12:32:31 -05:00
Eric
2ad9ac8c92 Attachment variants can be requested by name 2020-05-27 12:32:31 -05:00
Eric
3c78022724 Correct bug in the upgrade process where we sometimes overwrite part of a model class 2020-05-27 12:32:31 -05:00
Eric
4625aef641 Add a UUID to the end of export filenames 2020-05-27 12:32:31 -05:00
Eric
5b0110e1ef Migrate all chunked uploading to the new ChunkedUploader.upload method 2020-05-27 12:32:31 -05:00
Eric
6784583cbe Remove ChunkedUploader::S3 2020-05-27 12:32:31 -05:00
Eric
feb691f192 Create the CHUNKED_UPLOADER_SERVICE ENV variable 2020-05-27 12:32:31 -05:00
Eric
2b323f9bbc Simplify the ChunkedUploader so we use ActiveStorage 2020-05-27 12:32:31 -05:00
Eric
5ecf2b4c54 houdini_upgrade - remove trailing line break in nonprofit.rb template 2020-05-27 12:32:31 -05:00
Eric
cf00c08ed0 houdini_upgrade - correct the column headers for the copied and errors.csv 2020-05-27 12:32:31 -05:00
Eric
202a829134 houdini_upgrade:run move active_storage:install into a separate call so wonkiness doesn't happen 2020-05-27 12:32:31 -05:00
Eric
5c9930f677 houdini_upgrade:migrate_uploads now timestamps the copied and errors.csv 2020-05-27 12:32:31 -05:00
Eric
cb01fa3a78 houdini_upgrade:migrate_uploads now supports the shorter_test argument 2020-05-27 12:32:31 -05:00
Eric
fdb32cbbf3 houdini_upgrade:migrate_uploads always writes out a success and error file now 2020-05-27 12:32:31 -05:00
Eric
3a1c15f115 Remove the unused simulate argument for houdini_upgrade:migrate_uploads 2020-05-27 12:32:31 -05:00
Eric
69c2802a5d Make houdini_upgrade:run check for required tasks and add description 2020-05-27 12:32:31 -05:00
Eric
936ea739a7 houdini_upgrade:run add bundle to cleanup the carrierwave dependencies 2020-05-27 12:32:31 -05:00
Eric
cdf6235071 houdini_upgrade:run runs db:migrate in a separate shell 2020-05-27 12:32:31 -05:00
Eric
1e20a9adae Remove debug code from houdini_upgrade task 2020-05-27 12:32:31 -05:00
Eric
a08f25c475 houdini_upgrade strips out the model file changes 2020-05-27 12:32:31 -05:00
Eric
be85ea737e Correct the check for not overriding migrations 2020-05-27 12:32:31 -05:00
Eric
97083a38af Remove debug calls 2020-05-27 12:32:31 -05:00
Eric
7c9f097f1d Correct bugs in BackupUploaderColumns 2020-05-27 12:32:31 -05:00
Eric
ce831539f5 Add license to RemoveBillingPlanTiers 2020-05-27 12:32:31 -05:00
Eric
ef1445a5b9 Add houdini_upgrade to relevant filenames 2020-05-27 12:32:31 -05:00
Eric
23398ae552 Make sure copied migrations are named via utc timezone 2020-05-27 12:32:31 -05:00
Eric
5a10155755 put the migrate_upload into a separate rake process 2020-05-27 12:32:31 -05:00
Eric
0727b3972c Fix a rake task call in houdini_upgrade 2020-05-27 12:32:31 -05:00
Eric
98c78f6267 Put the rename uploader column into a change method 2020-05-27 12:32:31 -05:00
Eric
ed07c7ce3c Fix typo in houdini_upgrade uploaders to migrate 2020-05-27 12:32:31 -05:00
Eric
5681fba541 Make removal of billing_plans.tiers reversible 2020-05-27 12:32:31 -05:00
Eric
e86f9fefe8 Add support for passing the aws-region for the carrierwave migration 2020-05-27 12:32:31 -05:00
Eric
bcf5f264a2 Add a rake progress bar 2020-05-27 12:32:31 -05:00
Eric
4d29b67939 Use common set of tables and columns to migrate on upgrade for rename_uploader_column migration 2020-05-27 12:32:31 -05:00
Eric
e19e60322b Move the tables and columns to migrate into a single place 2020-05-27 12:32:31 -05:00
Eric
fd6888938f Add classes to simplify table migration and manipulation for upgrades 2020-05-27 12:32:31 -05:00
Eric
30c489a5a1 Remove initial test migration code 2020-05-27 12:32:31 -05:00
Eric
68ef9c723e houdini_upgrade:run now accepts the aws_bucket and aws_assethost options 2020-05-27 12:32:31 -05:00
Eric
d31ced53dd Fix typo in template where strings aren't properly wrapped 2020-05-27 12:32:31 -05:00
Eric
d75fb9b135 Move cw_to_activestorage generator to houdini_upgrade 2020-05-27 12:32:31 -05:00