Packages

Money functions for operations on and localization of a money data type with support for ISO 4217 currencies and ISO 24165 digial tokens (crypto currencies).

Current section

Files

Jump to
ex_money lib money migration.ex
Raw

lib/money/migration.ex

defmodule Money.Migration do
@moduledoc false
if Code.ensure_loaded?(Ecto.Migrator) && function_exported?(Ecto.Migrator, :migrations_path, 1) do
def migrations_path(repo) do
Ecto.Migrator.migrations_path(repo)
end
else
def migrations_path(repo) do
Mix.Ecto.migrations_path(repo)
end
end
if Code.ensure_loaded?(Code) && function_exported?(Code, :format_string!, 1) do
def format_string!(string) do
Code.format_string!(string)
end
else
def format_string!(string) do
string
end
end
end