Skip to content
#

activerecord

Here are 934 public repositories matching this topic...

mperham
mperham commented Jan 26, 2021

I have a Sidekiq customer complaining of a lot of "stuck" threads. He sends a lot of email so I suspected misbehaving SMTP servers.

The mail gem has support for timeouts here but they default to nil:

https://github.com/mikel/mail/blob/7b3e100f42f2d7738c3af7bf1909777568270b67/lib/mail/network/delivery_methods/smtp.rb#L91

Rails does not appear to set them by default:

https://github.c

armchairdj
armchairdj commented Mar 13, 2021

Describe the bug

When creating a state machine with a namespace and create_scopes: true, I would expect the automatically created scopes to be prepended with the namespace. But they're not.

For example, with this state machine:

aasm column: :final_targeting_state, namespace: :final_targeting, create_scopes: true do
  state :unstarted, initial: true
  state :started
  state :
keithdoggett
keithdoggett commented Mar 4, 2021

In order to determine the properties of a geometry column, the OID::Spatial#parse_sql_type method is called in the SchemaStatements#initialize_type_map method for geometry types. This method parses a sql_type (ex. "geometry(Polygon,4326)") and derives the geo_type, srid, has_z, has_m, and geographic properties from the string.

The problem is that after a join, sql_type comes i

Improve this page

Add a description, image, and links to the activerecord topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the activerecord topic, visit your repo's landing page and select "manage topics."

Learn more