141554c21c
and more importantly, don't try to connect to the 37id database, which will hang. And finally, set the connect_timeout to something small so if we do try to make a connection, it will fail quickly instead of hanging for the default 120 seconds.
10 lines
245 B
Ruby
10 lines
245 B
Ruby
module User::SignalUser
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
unless Rails.application.config.x.local_authentication
|
|
belongs_to :signal_user, dependent: :destroy, class_name: "SignalId::User", optional: true
|
|
end
|
|
end
|
|
end
|