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