mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 09:02:50 +00:00
server - remove realm 'Test'
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react_starter",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "A seed for a simple react application with typescript.",
|
||||
"scripts": {
|
||||
"build": "webpack -p --progress --colors",
|
||||
|
||||
2
mix.exs
2
mix.exs
@@ -4,7 +4,7 @@ defmodule MyApp.Mixfile do
|
||||
def project do
|
||||
[
|
||||
app: :myapp,
|
||||
version: "1.0.0",
|
||||
version: "1.0.1",
|
||||
elixir: "~> 1.5.2",
|
||||
elixirc_paths: elixirc_paths(Mix.env),
|
||||
compilers: [:phoenix, :gettext] ++ Mix.compilers,
|
||||
|
||||
10
priv/repo/migrations/20180130162526_category_delete_test.exs
Normal file
10
priv/repo/migrations/20180130162526_category_delete_test.exs
Normal file
@@ -0,0 +1,10 @@
|
||||
defmodule MyApp.Repo.Migrations.CategoryDeleteTest do
|
||||
use Ecto.Migration
|
||||
import Ecto.Query
|
||||
|
||||
# delete the test category I forgot in
|
||||
def change do
|
||||
from(c in "category", where: c.title == "Test")
|
||||
|> MyApp.Repo.delete_all
|
||||
end
|
||||
end
|
||||
@@ -147,7 +147,6 @@ defmodule Category do
|
||||
%{"id" => 115, "category" => "realm", "title" => "Stormscale"},
|
||||
%{"id" => 116, "category" => "realm", "title" => "Suramar"},
|
||||
%{"id" => 117, "category" => "realm", "title" => "Terenas"},
|
||||
%{"id" => 118, "category" => "realm", "title" => "Test"},
|
||||
%{"id" => 119, "category" => "realm", "title" => "Thunderhorn"},
|
||||
%{"id" => 120, "category" => "realm", "title" => "Thunderlord"},
|
||||
%{"id" => 121, "category" => "realm", "title" => "Tichondrius"},
|
||||
@@ -198,9 +197,8 @@ Enum.each(Category.get_seed(), fn(cat) ->
|
||||
end)
|
||||
end)
|
||||
|
||||
# TODO: Fix this for testing
|
||||
# insert admin user
|
||||
accounts = Application.get_env(:myapp, :admin_accounts)
|
||||
accounts = Application.get_env(:myapp, :admin_accounts) || []
|
||||
|
||||
Enum.each(accounts, fn (user) ->
|
||||
Repo.transaction(fn ->
|
||||
|
||||
Reference in New Issue
Block a user