mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #2603 from techAPJ/patch-1
FEATURE: allow staff to send multiple invites to same email
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class RemoveUniqueConstraintFromInvitesIndex < ActiveRecord::Migration
|
||||
def up
|
||||
remove_index :invites, [:email, :invited_by_id]
|
||||
add_index :invites, [:email, :invited_by_id], unique: false
|
||||
end
|
||||
|
||||
def down
|
||||
remove_index :invites, [:email, :invited_by_id]
|
||||
add_index :invites, [:email, :invited_by_id], unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user