diff --git a/bulkrax.gemspec b/bulkrax.gemspec index 08f34caa..adf49b70 100644 --- a/bulkrax.gemspec +++ b/bulkrax.gemspec @@ -33,6 +33,7 @@ Gem::Specification.new do |s| s.add_dependency 'rubyzip' s.add_dependency 'simple_form' + s.add_development_dependency 'dry-monads' s.add_development_dependency 'sqlite3', '~> 1.3.13' s.add_development_dependency 'simplecov' s.add_development_dependency 'redis', '~> 4.2' diff --git a/db/migrate/20240208005801_denormalize_status_message.rb b/db/migrate/20240208005801_denormalize_status_message.rb index 12d6ff99..314f2e62 100644 --- a/db/migrate/20240208005801_denormalize_status_message.rb +++ b/db/migrate/20240208005801_denormalize_status_message.rb @@ -1,7 +1,7 @@ class DenormalizeStatusMessage < ActiveRecord::Migration[5.2] def change - add_column :bulkrax_entries, :status_message, :string, default: 'Pending' - add_column :bulkrax_importers, :status_message, :string, default: 'Pending' - add_column :bulkrax_exporters, :status_message, :string, default: 'Pending' + add_column :bulkrax_entries, :status_message, :string, default: 'Pending' unless column_exists?(:bulkrax_entries, :status_message) + add_column :bulkrax_importers, :status_message, :string, default: 'Pending' unless column_exists?(:bulkrax_importers, :status_message) + add_column :bulkrax_exporters, :status_message, :string, default: 'Pending' unless column_exists?(:bulkrax_exporters, :status_message) end end