diff --git a/db/migrate/20240916182737_add_last_imported_at_to_bulkrax_importers.rb b/db/migrate/20240916182737_add_last_imported_at_to_bulkrax_importers.rb index 3cd782d0..24374800 100644 --- a/db/migrate/20240916182737_add_last_imported_at_to_bulkrax_importers.rb +++ b/db/migrate/20240916182737_add_last_imported_at_to_bulkrax_importers.rb @@ -1,5 +1,5 @@ class AddLastImportedAtToBulkraxImporters < ActiveRecord::Migration[5.1] def change - add_column :bulkrax_importers, :last_imported_at, :datetime + add_column :bulkrax_importers, :last_imported_at, :datetime unless column_exists?(:bulkrax_importers, :last_imported_at) end end diff --git a/db/migrate/20240916182823_add_next_import_at_to_bulkrax_importers.rb b/db/migrate/20240916182823_add_next_import_at_to_bulkrax_importers.rb index 26a76ce0..8d62c2bc 100644 --- a/db/migrate/20240916182823_add_next_import_at_to_bulkrax_importers.rb +++ b/db/migrate/20240916182823_add_next_import_at_to_bulkrax_importers.rb @@ -1,5 +1,5 @@ class AddNextImportAtToBulkraxImporters < ActiveRecord::Migration[5.1] def change - add_column :bulkrax_importers, :next_import_at, :datetime + add_column :bulkrax_importers, :next_import_at, :datetime unless column_exists?(:bulkrax_importers, :next_import_at) end end