Add required to city fields

This commit is contained in:
2014-05-20 20:17:05 -04:00
parent 0fcfa3a3a1
commit b2f8baaca6
3 changed files with 47 additions and 0 deletions
@@ -0,0 +1,19 @@
namespace MileageTraker.Web.Migrations
{
using System.Data.Entity.Migrations;
public partial class CityFieldsRequired : DbMigration
{
public override void Up()
{
AlterColumn("City", "Name", c => c.String(nullable: false));
AlterColumn("City", "County", c => c.String(nullable: false));
}
public override void Down()
{
AlterColumn("City", "County", c => c.String());
AlterColumn("City", "Name", c => c.String());
}
}
}