ReviewR.Web.Migrations.RemoveParticipant.Down C# (CSharp) Method

Down() public method

public Down ( ) : void
return void
        public override void Down()
        {
            CreateTable(
                "Participants",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        Required = c.Boolean(nullable: false),
                        ReviewId = c.Int(nullable: false),
                        UserId = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.Id);

            CreateIndex("Participants", "UserId");
            CreateIndex("Participants", "ReviewId");
            AddForeignKey("Participants", "UserId", "Users", "Id", cascadeDelete: true);
            AddForeignKey("Participants", "ReviewId", "Reviews", "Id", cascadeDelete: true);
        }
RemoveParticipant