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
|
class Run < ApplicationRecord
|
||||||
has_many :oysters
|
has_many :oysters
|
||||||
belongs_to :companies
|
belongs_to :companies
|
||||||
# establish_connection(:"stats_#{Rails.env}")
|
establish_connection(:"stats_#{Rails.env}")
|
||||||
Run.establish_connection(
|
#Run.establish_connection(
|
||||||
:adapter => "mysql2",
|
#:adapter => "mysql2",
|
||||||
:host => ENV['STATS_DB_URL'],
|
#:host => ENV['STATS_DB_URL'],
|
||||||
:username => ENV['STATS_DB_USER'],
|
#:username => ENV['STATS_DB_USER'],
|
||||||
:password => ENV['STATS_DB_PASS'],
|
#:password => ENV['STATS_DB_PASS'],
|
||||||
:database => "main"
|
#:database => "main"
|
||||||
)
|
#)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user