]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20210511104518_add_time_to_friendships.rb
Bump leaflet.locatecontrol from 0.81.1 to 0.82.0
[rails.git] / db / migrate / 20210511104518_add_time_to_friendships.rb
1 class AddTimeToFriendships < ActiveRecord::Migration[6.0]
2   disable_ddl_transaction!
3
4   def change
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"
8   end
9 end