Skip to content

Commit

Permalink
Merge pull request #603 from pat/dependabot/bundler/rubocop-rails-2.21.1
Browse files Browse the repository at this point in the history
chore(deps): bump rubocop-rails from 2.20.2 to 2.21.1
  • Loading branch information
pat authored Sep 15, 2023
2 parents a0beb73 + 1505134 commit 5d351da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions db/migrate/20200826115419_add_links_to_albums.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d351da

Please sign in to comment.