Skip to content

Commit

Permalink
Merge branch 'main' into strippers_and_rob_both_work_late
Browse files Browse the repository at this point in the history
* main:
  Denormalize Status Message to that Entry Look Up Can Be Fast (#913)
  ⚙️ Adding dry-monads as development dependency
  • Loading branch information
jeremyf committed Feb 8, 2024
2 parents 1adeff0 + 8ce15d9 commit 8da9aa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions bulkrax.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions db/migrate/20240208005801_denormalize_status_message.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8da9aa9

Please sign in to comment.