SQLite import creates account-scoped tags

References #1879
This commit is contained in:
Jeremy Daer
2025-12-03 14:56:50 -08:00
parent 9cf223aea1
commit 49139b7a14
+1 -2
View File
@@ -762,8 +762,7 @@ class Import
mapping[:taggings] ||= {} mapping[:taggings] ||= {}
import.tags.find_each do |old_tag| import.tags.find_each do |old_tag|
new_tag = Tag.find_or_create_by!(title: old_tag.title) do |t| new_tag = account.tags.find_or_create_by!(title: old_tag.title) do |t|
t.account_id = account.id
t.created_at = old_tag.created_at t.created_at = old_tag.created_at
t.updated_at = old_tag.updated_at t.updated_at = old_tag.updated_at
end end