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

Down() public method

public Down ( ) : void
return void
        public override void Down()
        {
            CreateTable(
                "DiffLines",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        ChangeId = c.Int(nullable: false),
                        Content = c.String(),
                        SourceLine = c.Int(nullable: false),
                        ModifiedLine = c.Int(nullable: false),
                        Discriminator = c.String(nullable: false, maxLength: 128),
                    })
                .PrimaryKey(t => t.Id);

            DropColumn("FileChanges", "Diff");
            CreateIndex("DiffLines", "ChangeId");
            AddForeignKey("DiffLines", "ChangeId", "FileChanges", "Id", cascadeDelete: true);
        }
RemoveLineObjects