added the migration
This commit is contained in:
parent
9e22f4a6e6
commit
906dd8d6d4
1 changed files with 9 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
||||||
|
class AddUniqueIndexOnInvitationServiceAndInvitationIdentifierToUsers < ActiveRecord::Migration
|
||||||
|
def self.up
|
||||||
|
add_index(:users, [:invitation_service, :invitation_identifier], :unique => true)
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.down
|
||||||
|
remove_index(:users, [:invitation_service, :invitation_identifier])
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Reference in a new issue