Skip to content

Commit 49139b7

Browse files
committed
SQLite import creates account-scoped tags
References #1879
1 parent 9cf223a commit 49139b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

script/import-sqlite-database.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,7 @@ def copy_tags
762762
mapping[:taggings] ||= {}
763763

764764
import.tags.find_each do |old_tag|
765-
new_tag = Tag.find_or_create_by!(title: old_tag.title) do |t|
766-
t.account_id = account.id
765+
new_tag = account.tags.find_or_create_by!(title: old_tag.title) do |t|
767766
t.created_at = old_tag.created_at
768767
t.updated_at = old_tag.updated_at
769768
end

0 commit comments

Comments
 (0)