Skip to content

Commit 9465072

Browse files
dependabot[bot]MrSerth
authored andcommitted
Bump solid_cable from 1.0.3 to 3.0.2
Bumps [solid_cable](https://github.com/rails/solid_cable) from 1.0.3 to 3.0.2. - [Release notes](https://github.com/rails/solid_cable/releases) - [Commits](rails/solid_cable@v1.0.3...v3.0.2) --- updated-dependencies: - dependency-name: solid_cable dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 24bcc92 commit 9465072

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

Gemfile.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,11 @@ GEM
511511
snaky_hash (2.0.1)
512512
hashie
513513
version_gem (~> 1.1, >= 1.1.1)
514-
solid_cable (1.0.3)
515-
rails (< 9)
514+
solid_cable (3.0.2)
515+
actioncable (>= 7.2)
516+
activejob (>= 7.2)
517+
activerecord (>= 7.2)
518+
railties (>= 7.2)
516519
solid_queue (1.0.0)
517520
activejob (>= 7.1)
518521
activerecord (>= 7.1)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# frozen_string_literal: true
2+
3+
class CreateCompactChannel < ActiveRecord::Migration[7.2]
4+
def change
5+
change_column :solid_cable_messages, :channel, :binary, limit: 1024, null: false
6+
add_column :solid_cable_messages, :channel_hash, :integer, limit: 8, if_not_exists: true
7+
add_index :solid_cable_messages, :channel_hash, if_not_exists: true
8+
change_column :solid_cable_messages, :payload, :binary, limit: 536_870_912, null: false
9+
10+
SolidCable::Message.find_each do |msg|
11+
msg.update(channel_hash: SolidCable::Message.channel_hash_for(msg.channel))
12+
end
13+
end
14+
end

db/cable_schema.rb

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)