When a column called type
is used to contain foreign keys the schema.rs
will contain joinable!(table_having_type_as_foreign_key -> types (type));
although it should be joinable!(table_having_type_as_foreign_key -> types (type_));
. Is there anything I can do to avoid this as calling diesel migration run
breaks schma.rs
?
See https://github.com/diesel-rs/diesel/pull/1897 for an fix. That should be included in the next release.