Merge remote-tracking branch 'parent/main' into kb_migration

This commit is contained in:
KMY 2023-08-20 08:37:27 +09:00
commit d1a76ea317
20 changed files with 447 additions and 280 deletions

View file

@ -0,0 +1,12 @@
# frozen_string_literal: true
class DropFollowRecommendations < ActiveRecord::Migration[7.0]
def up
drop_view :follow_recommendations, materialized: true
end
def down
create_view :follow_recommendations, version: 2, materialized: { no_data: true }
safety_assured { add_index :follow_recommendations, :account_id, unique: true }
end
end