diff --git a/src/main/java/com/avaje/ebean/dbmigration/model/build/ModelBuildIntersectionTable.java b/src/main/java/com/avaje/ebean/dbmigration/model/build/ModelBuildIntersectionTable.java index d85d1ca51..f7c122954 100644 --- a/src/main/java/com/avaje/ebean/dbmigration/model/build/ModelBuildIntersectionTable.java +++ b/src/main/java/com/avaje/ebean/dbmigration/model/build/ModelBuildIntersectionTable.java @@ -85,6 +85,11 @@ public class ModelBuildIntersectionTable { String tableName = intersectionTableJoin.getTable(); MTable table = new MTable(tableName); + if (!manyProp.isExcludedFromHistory()) { + if (localDesc.isHistorySupport()) { + table.setWithHistory(true); + } + } table.setPkName(ctx.primaryKeyName(tableName)); TableJoinColumn[] columns = intersectionTableJoin.columns();