Skip to content

Commit

Permalink
remove unused schema from constraint test
Browse files Browse the repository at this point in the history
  • Loading branch information
petermueller committed Oct 29, 2024
1 parent c1446c2 commit 4f80046
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions integration_test/myxql/constraints_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,6 @@ defmodule Ecto.Integration.ConstraintsTest do
end
end

defmodule CustomConstraint do
use Ecto.Integration.Schema

schema "procedure_constraints_test" do
field :member_id, :integer
field :started_at, :utc_datetime_usec
field :ended_at, :utc_datetime_usec
end
end

@base_migration 2_000_000

setup_all do
Expand Down Expand Up @@ -213,8 +203,6 @@ defmodule Ecto.Integration.ConstraintsTest do
assert exception.message =~ "The changeset has not defined any constraint."
assert exception.message =~ "call `exclusion_constraint/3`"

#####

# When the changeset does expect the db error
# but the key does not match the default generated by `exclusion_constraint`
exception =
Expand Down

0 comments on commit 4f80046

Please sign in to comment.