We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf223a commit 49139b7Copy full SHA for 49139b7
script/import-sqlite-database.rb
@@ -762,8 +762,7 @@ def copy_tags
762
mapping[:taggings] ||= {}
763
764
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
+ new_tag = account.tags.find_or_create_by!(title: old_tag.title) do |t|
767
t.created_at = old_tag.created_at
768
t.updated_at = old_tag.updated_at
769
end
0 commit comments