1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-27 02:10:27 +00:00
mobilizon/priv/repo/migrations/20211001101902_create_exports.exs

19 lines
388 B
Elixir
Raw Normal View History

defmodule Mobilizon.Repo.Migrations.CreateExports do
use Ecto.Migration
def change do
create table(:exports) do
add(:file_path, :string)
add(:file_size, :integer)
add(:file_name, :string)
add(:type, :string)
add(:reference, :string)
add(:format, :string)
timestamps()
end
create(unique_index(:exports, [:file_path]))
end
end