mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 11:47:41 +00:00
Fix db
This commit is contained in:
parent
9bd32acc3d
commit
6b68be2b17
4
Pearlception/app/models/oyster.rb
Normal file
4
Pearlception/app/models/oyster.rb
Normal file
@ -0,0 +1,4 @@
|
||||
class Oyster < ActiveRecord::Base
|
||||
establish_connection("stats")
|
||||
|
||||
end
|
||||
@ -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
15
Pearlception/db/schema.rb
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user