Skip to content

Commit

Permalink
Reset column info
Browse files Browse the repository at this point in the history
  • Loading branch information
npezza93 committed Sep 13, 2024
1 parent 98879c4 commit 029428a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bench/db/migrate/20240912235943_create_compact_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def change
add_index :solid_cable_messages, :channel_hash, if_not_exists: true
change_column :solid_cable_messages, :payload, :binary, limit: 536_870_912, null: false

SolidCable::Message.reset_column_information
SolidCable::Message.find_each do |msg|
msg.update(channel_hash: SolidCable::Message.channel_hash_for(msg.channel))
end
Expand Down

0 comments on commit 029428a

Please sign in to comment.