mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 03:37:40 +00:00
- authentication routes are glitchy - custom devise views are not being displayed properly - routing issues and custom fields for devise routes and models
13 lines
315 B
Ruby
13 lines
315 B
Ruby
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"
|
|
)
|
|
end
|