diff --git a/Gemfile.lock b/Gemfile.lock index 950bb07..1158341 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -339,7 +339,7 @@ GEM rubocop-performance (1.19.0) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rails (2.20.2) + rubocop-rails (2.21.1) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) diff --git a/db/migrate/20200826115419_add_links_to_albums.rb b/db/migrate/20200826115419_add_links_to_albums.rb index 55a75a8..6a8fbda 100644 --- a/db/migrate/20200826115419_add_links_to_albums.rb +++ b/db/migrate/20200826115419_add_links_to_albums.rb @@ -2,7 +2,9 @@ class AddLinksToAlbums < ActiveRecord::Migration[6.0] def change - add_column :albums, :links_checked_at, :datetime - add_column :albums, :links, :json, :default => {}, :null => false + change_table(:albums, :bulk => true) do |t| + t.column :links_checked_at, :datetime + t.column :links, :json, :default => {}, :null => false + end end end diff --git a/db/migrate/20200831112811_remove_odesli_musicbrainz_timestamps.rb b/db/migrate/20200831112811_remove_odesli_musicbrainz_timestamps.rb index 647e286..939ed5c 100644 --- a/db/migrate/20200831112811_remove_odesli_musicbrainz_timestamps.rb +++ b/db/migrate/20200831112811_remove_odesli_musicbrainz_timestamps.rb @@ -23,8 +23,10 @@ def up WHERE odesli_checked_at IS NOT NULL SQL - remove_column :albums, :musicbrainz_checked_at - remove_column :albums, :odesli_checked_at + change_table(:albums, :bulk => true) do |t| + t.remove :musicbrainz_checked_at + t.remove :odesli_checked_at + end end def down