1 class AddTimeToFriendships < ActiveRecord::Migration[6.0]
2 disable_ddl_transaction!
5 add_column :friends, :created_at, :datetime
6 add_index :friends, [:user_id, :created_at], :algorithm => :concurrently
7 remove_index :friends, :column => :user_id, :name => "friends_user_id_idx"