Current section

Files

Jump to
ash_uuid config config.exs
Raw

config/config.exs

import Config
config :spark, :formatter,
remove_parens?: true,
"Ash.Resource": [
section_order: [
:resource,
:code_interface,
:postgres,
:attributes,
:relationships,
:identities,
:validations,
:calculations,
:actions
]
]
if Mix.env() == :dev do
config :git_ops,
mix_project: Mix.Project.get!(),
changelog_file: "CHANGELOG.md",
repository_url: "https://github.com/zoonect-oss/ash_uuid",
manage_mix_version?: true,
manage_readme_version: ["README.md"],
version_tag_prefix: "v"
end
if Mix.env() == :test do
config :ash_uuid, :otp_app, :ash_uuid
config :ash_uuid, AshUUID.Test.Repo,
parameters: [plan_cache_mode: "force_custom_plan"],
pool: Ecto.Adapters.SQL.Sandbox,
prepare: :named,
show_sensitive_data_on_connection_error: true,
stacktrace: true,
timeout: 1_000,
url: System.get_env("DATABASE_URL", "postgres://postgres@127.0.0.1:59001/ash_uuid_test"),
migration_primary_key: [name: :id, type: :uuid],
migration_timestamps: [type: :utc_datetime_usec]
config :ash_uuid,
ecto_repos: [AshUUID.Test.Repo],
ash_domains: [AshUUID.Test]
# Ash: type shorthands
# config :ash, :custom_types,
# raw_v4: AshUUID.RawV4,
# raw_v7: AshUUID.RawV7,
# encoded_v4: AshUUID.EncodedV4,
# encoded_v7: AshUUID.EncodedV7,
# prefixed_v4: AshUUID.PrefixedV4,
# prefixed_v7: AshUUID.PrefixedV7
# config :ash, :default_belongs_to_type, AshUUID.PrefixedV7
config :ash_uuid, :ash_uuid,
version: 7,
encoded?: true,
prefixed?: true,
migration_default?: true,
strict?: true
end