mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 13:39:36 -06:00
12 lines
344 B
Ruby
12 lines
344 B
Ruby
class RemoveUniqueConstraintFromInvitesIndex < ActiveRecord::Migration[4.2]
|
|
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
|