Versioned.Helpers.build_version

You're seeing just the function build_version, go back to Versioned.Helpers module for more information.
Link to this function

build_version(struct, opts)

View Source

Specs

build_version(Ecto.Schema.t(), keyword()) :: Ecto.Changeset.t() | nil

Create a version_mod struct to insert from a new instance of the record.

Options

  • :deleted - If true, records will marked as deleted.
  • :change - For updates, an Ecto.Changeset.t/0 should be provided to inform which records were inserted vs updated vs deleted.