Hi, the following code does create the new column, but not the constraint/index. I even named it so the rollback would work.
public class Migration1010 : MigrationBase
{
[UniqueConstraint(nameof(Shortname), nameof(Version), "Unique_ShortName_Version")]
public class FormDefinition
{
public string Shortname { get; set; }
}
public override void Up()
{
Db.Migrate<FormDefinition>();
}
public override void Down()
{
Db.Revert<FormDefinition>();
}
}
Anything I’m doing wrong here?