David Hempy

Results 9 comments of David Hempy

I am implementing Octopus in our Rails 4.2 application for reading from a replica. Default is fully_replicated: false, and we're only .using(:reader_db) for a handful heavy queries for reports. Simultaneously,...

Just to clarify...it sounds like the query is going to the slave database correctly...but that the current_shard attribute is incorrectly getting :master. Is that correct, @thiagopradi ?

Same. I was surprised this style is not enforced by default...I could have sworn there was from my early Ruby days, but it seems I misremember. Further surprised there is...

Agreed...would love to see header validation DSL matching params validation DSL.

ps. I'm using paranoia_uniqueness_validator ~> 0.1.0 for my crusty old Rails 3.2 app. (shame)

I'm game to take that on. Do you have a preference for what the interface might look like?

Looks reasonable. I'll take a stab at that next week.

And in case I don't get around to it, and someone else needs this, here's a close workaround: validates :user_name, uniqueness: { scope: :deleted_timestamp } I think this is not...