-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migration to update all objects with a nil digitalobject_source (#1447)
Co-authored-by: JP Engstrom <jpengstrom@macbook-pro.lan>
- Loading branch information
JP Engstrom
and
JP Engstrom
authored
Oct 11, 2024
1 parent
5a041ae
commit beaaa98
Showing
2 changed files
with
6 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class UpdateDigitalObjectSource < ActiveRecord::Migration[7.0] | ||
def change | ||
ActiveRecord::Base.connection.execute("UPDATE parent_objects SET digital_object_source = 'None' WHERE digital_object_source IS NULL") | ||
end | ||
end |
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