Maciej Malecki
Maciej Malecki
@yordis, no options were renamed. I've just sorted the list alphabetically for better readability.
👍 for this. We have a similar CI check as a shell script: ```shell #!/bin/sh set -e cp -R sorbet sorbet.checked # ... bundle exec rails rails_rbi:helpers bundle exec rails...
@alexlyp check what is a `cwd` in the runtime while trying to load a native package. It is probably the root of the host instead of the application's directory. I'm...
In my case, all files from the `dist` are copied directly into the electron's application directory (as the asar package). Unfortunately the cwd of the process is `/` of the...
It looks like the [CI failure](https://buildkite.com/rails/rails/builds/82850#1647977d-f2b9-4e63-bd90-a5f7d9509105) is irrelevant as it failed on S3 timeout. I don't see the option for retrying it from the UI.
@rails-bot This is still relevant.
The only workaround that I think would work is using the exclusive lock, e.g.: ```ruby Parallel.each(1..50) do ActiveRecord::Base.connection_pool.with_connection do ActiveRecord::Base.transaction do ActiveRecord::Base.connection.execute("LOCK #{ActiveStorage::Blob.table_name} IN ACCESS EXCLUSIVE MODE") User.first.files.attach(io: File.open("README.md"), filename:...
Is there any reason why https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/attached/many.rb#L51-L52 replaces the collection instead of creating new objects for attachment(s)?
Another workaround is to create an attachment manually: ```ruby blob = ActiveStorage::Blob.create_and_upload!(io: File.open("README.md"), filename: "README.md") attachment = ActiveStorage::Attachment.create!(blob: blob, name: "files", record_type: "User", record_id: 1) ``` I did not check...
I see. I will use https://github.com/rails/rails/issues/42941#issuecomment-892594249 as the workaround for now. Please let me know If you are aware of any bad consequences of such a solution or a better...