This commit is contained in:
cole alban 2017-02-02 12:16:48 -05:00
parent 9d17166e8f
commit 7fe0230c24

View File

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