Generates database drift tests for a temporal schema.
Summary
Functions
Generates ExUnit tests for a temporal schema's database installation.
Functions
Generates ExUnit tests for a temporal schema's database installation.
defmodule MyApp.SysTimeDriftTest do
use ExUnit.Case, async: false
import SysTime.Test
drift_tests MyApp.Shareholder, MyApp.Repo
endThe generated tests verify positional column identity, history-schema fields,
the primary-key overlap constraint, and all three ENABLE ALWAYS triggers.