-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧹 expands the ability to upload remote_files for valkyrie (#967)
* 🧹 expands the ability to upload remote_files for valkyrie resources Previously this code strictly downloaded from s3 buckets. This was limiting, and expands the ability to import remote files without s3. * Adds ability to set filename * remove comment * adds ability to import thumbnail_url * Completes import with remote files - Provides a valkyrized way to import from a remote url. - Supports additional file set arguments if present. - Adds filename to Hyrax's UploadedFile table, to allow overriding of carrierwave's default file name behavior. refs - scientist-softserv/adventist_knapsack#708 - scientist-softserv/adventist_knapsack#723 * 💄 fix rubocop errors * 🧹 fix for failing migration error: NoMethodError: undefined method `column_exists' for #<AddFileNameToUploadedFiles:0x000055d8c48ea0b0 @name="AddFileNameToUploadedFiles", @Version=20240806161142, @connection=nil> --------- Co-authored-by: LaRita Robinson <larita@scientist.com>
- Loading branch information
1 parent
fe15dde
commit 176b11a
Showing
2 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddFileNameToUploadedFiles < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :uploaded_files, :filename, :string unless column_exists?(:uploaded_files, :filename) | ||
end | ||
end |