diff --git a/db/migrate/20241010160941_update_digital_object_source.rb b/db/migrate/20241010160941_update_digital_object_source.rb new file mode 100644 index 000000000..0255531f7 --- /dev/null +++ b/db/migrate/20241010160941_update_digital_object_source.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 735bddb55..605405bb6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2024_05_08_022339) do +ActiveRecord::Schema[7.0].define(version: 2024_10_10_160941) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql"