This commit is contained in:
Cole A 2017-01-04 15:13:48 -05:00
parent 9bd32acc3d
commit 6b68be2b17
3 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,4 @@
class Oyster < ActiveRecord::Base
establish_connection("stats")
end

View File

@ -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

15
Pearlception/db/schema.rb Normal file
View File

@ -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