       }
     ], returning: true) |> elem(1)
   end
+  def add_three_versions_multi do
+    @repo.insert_all(Version, [
+      @valid_attrs,
+      %{
+        event: "insert",
+        item_type: "Person",
+        item_id: 2,
+        item_changes: %{first_name: "Brendan", last_name: "Eich"},
+        origin: "test",
+        inserted_at: DateTime.from_naive!(~N[1961-07-04 01:00:00.000], "Etc/UTC")
+      },
+      %{
+        event: "insert",
+        item_type: "Person",
+        item_id: 3,
+        item_changes: %{first_name: "Yukihiro", last_name: "Matsumoto"},
+        origin: "test",
+        inserted_at: DateTime.from_naive!(~N[1965-04-14 01:00:00.000], "Etc/UTC")
+      }
+    ], returning: true, prefix: MultiTenant.tenant()) |> elem(1)
+  end
 
   def serialize(nil), do: nil
   def serialize(resource) do

    Application.put_env(:paper_trail, :repo, PaperTrail.Repo)
    Code.eval_file("lib/paper_trail.ex")
    Code.eval_file("lib/version.ex")
    :ok
  end

  setup do
    @repo.delete_all(Version)
    on_exit fn ->
      @repo.delete_all(Version)
    end
    :ok
  end

  use ExUnit.Case

  alias PaperTrail.Version
  alias PaperTrailTest.MultiTenantHelper, as: MultiTenant

  @valid_attrs %{
    event: "insert",
