feat: Bulk add team members in Team APIs (#1695)

This commit is contained in:
Sojan Jose
2021-01-29 12:34:52 +05:30
committed by GitHub
parent bf7915c8a3
commit f9c3b7f2f1
8 changed files with 58 additions and 18 deletions

View File

@@ -0,0 +1,6 @@
class AdduniqueIndexToTeamMembers < ActiveRecord::Migration[6.0]
def change
add_index :teams, [:name, :account_id], unique: true
add_index :team_members, [:team_id, :user_id], unique: true
end
end