mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
12 lines
339 B
Ruby
12 lines
339 B
Ruby
|
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
|