Skip to content

Commit

Permalink
Fix some broken migrations when upgrading from v2
Browse files Browse the repository at this point in the history
  • Loading branch information
aidewoode committed May 22, 2024
1 parent 53cc046 commit b2c6189
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/migrate/20221115062920_change_array_value_to_text.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class ChangeArrayValueToText < ActiveRecord::Migration[7.0]
def up
change_column :users, :recently_played_album_ids, :text
User.update_all(recently_played_album_ids: [])
end

def down
Expand Down

0 comments on commit b2c6189

Please sign in to comment.