Skip to content

Commit

Permalink
Merge pull request #380 from blackcandy-org/v2-migration
Browse files Browse the repository at this point in the history
Fix some broken migrations when upgrading from v2
  • Loading branch information
aidewoode authored May 27, 2024
2 parents 53cc046 + b2c6189 commit fc2d680
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 fc2d680

Please sign in to comment.