Commit d484a7b9 authored by Igor Drozdov's avatar Igor Drozdov

Disable STI for BackupLabel to prefil type correctly

When ProjectLabel is migrated into backup_labels table,
we want type column to have "ProjectLabel" value.

In Rails 6.1 STI behavior changed so the type column
get prefilled with BackupLabel value instead
parent 9f31c114
......@@ -9,6 +9,8 @@ class RemoveDuplicateLabelsFromProject < ActiveRecord::Migration[6.0]
disable_ddl_transaction!
class BackupLabel < Label
self.inheritance_column = :_type_disabled
self.table_name = 'backup_labels'
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment