Created
October 17, 2012 07:54
-
-
Save owickstrom/3904278 to your computer and use it in GitHub Desktop.
A simple Continuous Integration and Deployment workflow with ASP.NET MVC, GitHub and Jenkins (Changing the model)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Thing | |
{ | |
public long ThingId { get; set; } | |
public string Name { get; set; } | |
public string Description { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class ThingDescription : DbMigration | |
{ | |
public override void Up() | |
{ | |
AddColumn("dbo.Thing", "Description", c => c.String()); | |
} | |
public override void Down() | |
{ | |
DropColumn("dbo.Thing", "Description"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment