File Size for Ecto v3.0.1 FileSize.Ecto.Byte View Source

An Ecto type that represents a file size in bytes. The value is stored as integer in the database.

Example

defmodule MySchema do
  use Ecto.Schema

  schema "my_table" do
    field :file_size, FileSize.Ecto.Byte
  end
end