]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20210511104518_add_time_to_friendships.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 20210511104518_add_time_to_friendships.rb
1 # frozen_string_literal: true
2
3 class AddTimeToFriendships < ActiveRecord::Migration[6.0]
4   disable_ddl_transaction!
5
6   def change
7     add_column :friends, :created_at, :datetime
8     add_index :friends, [:user_id, :created_at], :algorithm => :concurrently
9     remove_index :friends, :column => :user_id, :name => "friends_user_id_idx"
10   end
11 end