Chatwoot/db/migrate/20210126121313_addunique_index_to_team_members.rb

7 lines
209 B
Ruby
Raw Permalink Normal View History

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