diff options
Diffstat (limited to 'app/models/packages/ml_model/package.rb')
-rw-r--r-- | app/models/packages/ml_model/package.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/packages/ml_model/package.rb b/app/models/packages/ml_model/package.rb index de2b5f8f2a8..a327a30ce26 100644 --- a/app/models/packages/ml_model/package.rb +++ b/app/models/packages/ml_model/package.rb @@ -3,6 +3,8 @@ module Packages module MlModel class Package < Packages::Package + self.allow_legacy_sti_class = true + has_one :model_version, class_name: "Ml::ModelVersion", inverse_of: :package validates :name, |