├── .formatter.exs ├── .gitignore ├── .vscode ├── settings.json └── tasks.json ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── config ├── config.exs └── test.exs ├── lib ├── ecto_ranked.ex └── ecto_ranked │ └── utils.ex ├── mix.exs ├── mix.lock ├── priv └── repo │ └── migrations │ ├── 20170514145820_model.exs │ ├── 20170517103709_multi_model.exs │ ├── 20170517110826_multi_scope_model.exs │ └── 20180309141402_prefixed_model.exs └── test ├── multiple_scope_test.exs ├── multiple_test.exs ├── prefixed_test.exs ├── ranked_test.exs ├── scoped_test.exs ├── support ├── model.ex ├── multi_model.ex ├── multi_scope_model.ex ├── prefixed_model.ex ├── repo.ex └── scope_required_model.ex └── test_helper.exs /.formatter.exs: -------------------------------------------------------------------------------- 1 | [ 2 | import_deps: [:ecto] 3 | ] 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true 3 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/README.md -------------------------------------------------------------------------------- /config/config.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/config/config.exs -------------------------------------------------------------------------------- /config/test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/config/test.exs -------------------------------------------------------------------------------- /lib/ecto_ranked.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/lib/ecto_ranked.ex -------------------------------------------------------------------------------- /lib/ecto_ranked/utils.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/lib/ecto_ranked/utils.ex -------------------------------------------------------------------------------- /mix.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/mix.exs -------------------------------------------------------------------------------- /mix.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/mix.lock -------------------------------------------------------------------------------- /priv/repo/migrations/20170514145820_model.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/priv/repo/migrations/20170514145820_model.exs -------------------------------------------------------------------------------- /priv/repo/migrations/20170517103709_multi_model.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/priv/repo/migrations/20170517103709_multi_model.exs -------------------------------------------------------------------------------- /priv/repo/migrations/20170517110826_multi_scope_model.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/priv/repo/migrations/20170517110826_multi_scope_model.exs -------------------------------------------------------------------------------- /priv/repo/migrations/20180309141402_prefixed_model.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/priv/repo/migrations/20180309141402_prefixed_model.exs -------------------------------------------------------------------------------- /test/multiple_scope_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/multiple_scope_test.exs -------------------------------------------------------------------------------- /test/multiple_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/multiple_test.exs -------------------------------------------------------------------------------- /test/prefixed_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/prefixed_test.exs -------------------------------------------------------------------------------- /test/ranked_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/ranked_test.exs -------------------------------------------------------------------------------- /test/scoped_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/scoped_test.exs -------------------------------------------------------------------------------- /test/support/model.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/support/model.ex -------------------------------------------------------------------------------- /test/support/multi_model.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/support/multi_model.ex -------------------------------------------------------------------------------- /test/support/multi_scope_model.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/support/multi_scope_model.ex -------------------------------------------------------------------------------- /test/support/prefixed_model.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/support/prefixed_model.ex -------------------------------------------------------------------------------- /test/support/repo.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/support/repo.ex -------------------------------------------------------------------------------- /test/support/scope_required_model.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/support/scope_required_model.ex -------------------------------------------------------------------------------- /test/test_helper.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dmarkow/ecto_ranked/HEAD/test/test_helper.exs --------------------------------------------------------------------------------