Skip to content

Commit

Permalink
feat: support polymorphic associations / abstract schemas (#51)
Browse files Browse the repository at this point in the history
* chore: use git mv to rename files

* add common-schemas

* add tests

* make credo happy

* chore: cleanup tests

* chore: add missing doc example

* only handle source queryable tuple for get_schema_query

* chore: remove old mock schema code from common schemas test
  • Loading branch information
cylkdev authored Sep 20, 2024
1 parent 3ef6076 commit daaefe5
Show file tree
Hide file tree
Showing 53 changed files with 4,765 additions and 1,483 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ erl_crash.dump
# Ignore package tarball (built via "mix hex.build").
ecto_shorts-*.tar

# Ignore dialyzer plts
dialyzer/*.plt*

.DS_Store
.elixir_ls
4 changes: 2 additions & 2 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ config :ecto_shorts,
repo: nil,
error_module: EctoShorts.Actions.Error

if Mix.env() == :test do
if Mix.env() === :test do
config :ecto_shorts, ecto_repos: [EctoShorts.Support.Repo]
config :ecto_shorts, repo: EctoShorts.Support.Repo
config :ecto_shorts, :sql_sandbox, true
config :ecto_shorts, EctoShorts.Support.Repo,
username: "postgres",
database: "ecto_shorts",
database: "ecto_shorts_test",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
log: :debug,
Expand Down
Empty file added dialyzer/.gitkeep
Empty file.
Loading

0 comments on commit daaefe5

Please sign in to comment.