public override void Up()
{
CreateTable(
"dbo.Nemesis",
c => new
{
Id = c.Int(nullable: false, identity: true),
MinionPlayerId = c.Int(nullable: false),
NemesisPlayerId = c.Int(nullable: false),
DateCreated = c.DateTime(nullable: false, defaultValue: DateTime.UtcNow),
NumberOfGamesLost = c.Int(nullable: false),
LossPercentage = c.Single(nullable: false),
})
.PrimaryKey(t => t.Id)
.ForeignKey("dbo.Player", t => t.MinionPlayerId, cascadeDelete: false)
.ForeignKey("dbo.Player", t => t.NemesisPlayerId, cascadeDelete: false)
.Index(t => t.MinionPlayerId)
.Index(t => t.NemesisPlayerId);
AddColumn("dbo.Player", "NemesisId", c => c.Int());
CreateIndex("dbo.Player", "NemesisId");
AddForeignKey("dbo.Player", "NemesisId", "dbo.Nemesis", "Id");
}