From da0d2a215d04e3a38c26c5afd63b86d0d58843b7 Mon Sep 17 00:00:00 2001 From: cole alban Date: Fri, 24 Feb 2017 15:14:15 -0500 Subject: [PATCH] Finish part 1 of db --- Pearlception/config/database.yml | 4 ++-- setup.rb | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Pearlception/config/database.yml b/Pearlception/config/database.yml index 025b1d5..e978a3a 100644 --- a/Pearlception/config/database.yml +++ b/Pearlception/config/database.yml @@ -31,8 +31,8 @@ stats_test: development: <<: *default database: Pearlception_development - username: bmv - password: 1156244terps! + username: colealban + password: 1156244Terps! # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". diff --git a/setup.rb b/setup.rb index 9555cc9..992184b 100644 --- a/setup.rb +++ b/setup.rb @@ -32,7 +32,12 @@ end def migrate_oysters client = establish_db_connection - client.query("SELECT * FROM oysters").each do |res| + puts "Connection established" + client.query("SHOW TABLES").each do |tab| + puts tab + end + client.query("SELECT * FROM runs").each do |res| + puts "got result" puts res end end @@ -40,6 +45,6 @@ end ########## MAIN METHOD ##################### bundle #bundle install initial_migration #Setup db -migrate_oysters +#migrate_oysters #add in og admin #Migrate all the oysters,runs,results from the AWS DB