mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 03:37:40 +00:00
update
This commit is contained in:
parent
9d17166e8f
commit
7fe0230c24
@ -1,12 +1,12 @@
|
||||
class Run < ApplicationRecord
|
||||
has_many :oysters
|
||||
belongs_to :companies
|
||||
# establish_connection(:"stats_#{Rails.env}")
|
||||
Run.establish_connection(
|
||||
:adapter => "mysql2",
|
||||
:host => ENV['STATS_DB_URL'],
|
||||
:username => ENV['STATS_DB_USER'],
|
||||
:password => ENV['STATS_DB_PASS'],
|
||||
:database => "main"
|
||||
)
|
||||
establish_connection(:"stats_#{Rails.env}")
|
||||
#Run.establish_connection(
|
||||
#:adapter => "mysql2",
|
||||
#:host => ENV['STATS_DB_URL'],
|
||||
#:username => ENV['STATS_DB_USER'],
|
||||
#:password => ENV['STATS_DB_PASS'],
|
||||
#:database => "main"
|
||||
#)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user