20230818142253_drop_follow_recommendations.rb 358 B

123456789101112
  1. # frozen_string_literal: true
  2. class DropFollowRecommendations < ActiveRecord::Migration[7.0]
  3. def up
  4. drop_view :follow_recommendations, materialized: true
  5. end
  6. def down
  7. create_view :follow_recommendations, version: 2, materialized: { no_data: true }
  8. safety_assured { add_index :follow_recommendations, :account_id, unique: true }
  9. end
  10. end