2023-08-18 16:20:55 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DropFollowRecommendations < ActiveRecord::Migration[7.0]
|
|
|
|
def up
|
|
|
|
drop_view :follow_recommendations, materialized: true
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2024-01-30 18:21:30 +00:00
|
|
|
create_view :follow_recommendations, version: 2, materialized: true
|
2023-08-18 16:20:55 +00:00
|
|
|
safety_assured { add_index :follow_recommendations, :account_id, unique: true }
|
|
|
|
end
|
|
|
|
end
|