#RubyOnRails - 12 January 2019
« Back 1 day Forward 1 day »
[02:44:55] THKitten: hey guys, anyone here have any idea about sidekiq? I'm getting this error, I don't know how to resolve it: https://pastebin.com/HVGssgfg
[02:45:34] THKitten: this happened after I removed mastodon from the server because mastodon and diaspora were having redis database conflicts (sidekiq was trying to process both site's requests and they there killing each other's requests)
[08:40:50] tbuehlmann: THKitten: what user runs your rails app/sidekiq process and what permissions does this user have on the pid file?
[11:39:37] catbusters: Say I have two tables, `Product` and `ProductDetails`. Traditionally I'd put a FK for `ProductDetails` on `Product`. But the Rails guide says otherwise, to add `belongs_to` on `ProductDetails` (so `ProductDetails` will have the foreign key instead).
[11:40:17] catbusters: This somehow just doesn't feel right to me, but on the other hand `Product belongs_to ProductDetails` wouldn't make sense either
[12:00:59] tbuehlmann: catbusters: `ProductDetails.belongs_to :product` sounds right to me. it depends on the product being there
[12:41:50] tbuehlmann: THKitten: get to go. I assume there's something with the permissions or user that's executing. good luck with that