Marco Carvalho

Results 7 comments of Marco Carvalho

This is causing strange errors with STI. I have one test that uses WithModel; after that test run, the next test that uses any STI will fail because one or...

Same issue, I tried some iterations over the same error: https://github.com/marcocarvalho/dry-validation-playground

```ruby Schema = Dry::Schema.JSON do optional(:external_id).value(:string, max_size?: 64) optional(:first_name).value(:string, max_size?: 255) optional(:last_name).value(:string, max_size?: 255) optional(:type).value(:string, max_size?: 32) optional(:birthdate).value(:string, format?: /\A(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])\Z/) end OnlyCommonFieldsSchema = Dry::Schema.JSON do optional(:last_name).value(:string, max_size?: 255) optional(:type).value(:string, max_size?:...

@solnic, this breaks the reusability of schemas. Any chance this could be worked on?

The #58 change also breaks if you use active storage. ``` ActiveRecord::StatementInvalid: PG::FeatureNotSupported: ERROR: cannot truncate a table referenced in a foreign key constraint DETAIL: Table "active_storage_variant_records" references "active_storage_blobs". HINT:...