From 1505134b22216f5892a0558922bc41df20a879f3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Sep 2023 19:29:32 +0000 Subject: [PATCH] chore(deps): bump rubocop-rails from 2.20.2 to 2.21.1 Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.20.2 to 2.21.1. - [Release notes](https://github.com/rubocop/rubocop-rails/releases) - [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.20.2...v2.21.1) --- updated-dependencies: - dependency-name: rubocop-rails dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- db/migrate/20200826115419_add_links_to_albums.rb | 6 ++++-- .../20200831112811_remove_odesli_musicbrainz_timestamps.rb | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) 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