From 6b68be2b174a01f47432697efc596a8385232ca2 Mon Sep 17 00:00:00 2001 From: Cole A Date: Wed, 4 Jan 2017 15:13:48 -0500 Subject: [PATCH] Fix db --- Pearlception/app/models/oyster.rb | 4 ++++ Pearlception/config/database.yml | 4 ++-- Pearlception/db/schema.rb | 15 +++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 Pearlception/app/models/oyster.rb create mode 100644 Pearlception/db/schema.rb diff --git a/Pearlception/app/models/oyster.rb b/Pearlception/app/models/oyster.rb new file mode 100644 index 0000000..7600c3a --- /dev/null +++ b/Pearlception/app/models/oyster.rb @@ -0,0 +1,4 @@ +class Oyster < ActiveRecord::Base + establish_connection("stats") + +end diff --git a/Pearlception/config/database.yml b/Pearlception/config/database.yml index 140a8da..835347d 100644 --- a/Pearlception/config/database.yml +++ b/Pearlception/config/database.yml @@ -21,8 +21,8 @@ stats: adapter: mysql2 encoding: utf8 pool: 5 - username: ivauser - password: ivapassword + username: <%= ENV['DB_USER'] %> + password: <%= ENV['DB_PASS'] %> host: taylors.c02zesysnssi.us-west-2.rds.amazonaws.com port: 3306 database: taylors diff --git a/Pearlception/db/schema.rb b/Pearlception/db/schema.rb new file mode 100644 index 0000000..52ab025 --- /dev/null +++ b/Pearlception/db/schema.rb @@ -0,0 +1,15 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 0) do + +end