only try db seed in debug

This commit is contained in:
Collin M. Barrett 2017-10-28 08:46:07 -05:00
parent e2589657a9
commit 23ae1d6d85
2 changed files with 2838 additions and 2838 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using FilterLists.Data.Entities;
@ -10,6 +11,7 @@ namespace FilterLists.Data
{
public static class DbInitializer
{
[Conditional("DEBUG")]
public static void Initialize(FilterListsDbContext filterListsDbContext)
{
filterListsDbContext.Database.Migrate();