From 9183a16d5dcd846c7f9ae3c0312128ff973f842d Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 24 Jul 2018 13:57:25 +0000 Subject: [PATCH] Want ability to run db:seed on prod if needed --- db/seeds.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 250af36..141034b 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -5,7 +5,7 @@ # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) -if Rails.env.development? +#if Rails.env.development? User.create(id: 1, email: 'test@test.com', password: 'password', password_confirmation: 'password') Tournament.create(id: 200, name: 'test', address: 'some place', director: 'some guy', director_email: 'hismail@email.com', tournament_type: 'Pool to bracket', user_id: 1, date: Date.today) School.create(id: 200, name: 'Central Crossing', tournament_id: 200) @@ -75,7 +75,7 @@ if Rails.env.development? Wrestler.create(name: 'Guy 50', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A') Wrestler.create(name: 'Guy 51', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A') Wrestler.create(name: 'Guy 52', school_id: 204, weight_id: 204, original_seed: nil, season_win: 0, season_loss: 0, criteria: 'N/A') -end +#end