From e748d11bfd2232b77aeb5dae0d1e76ebb2988afb Mon Sep 17 00:00:00 2001 From: neodarz Date: Thu, 9 Feb 2017 14:07:40 +0100 Subject: Update the column name transcrib_file to audio_name --- web/models/audio_file.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/models/audio_file.ex') diff --git a/web/models/audio_file.ex b/web/models/audio_file.ex index 46cf05f..f7be8de 100644 --- a/web/models/audio_file.ex +++ b/web/models/audio_file.ex @@ -3,7 +3,7 @@ defmodule TheTranscriberBackend.AudioFile do schema "audio_file" do field :audio_path, :string - field :transcription_file_path, :string + field :audio_name, :string field :audio_duration, :string timestamps() @@ -15,7 +15,7 @@ defmodule TheTranscriberBackend.AudioFile do def changeset(struct, params \\ %{}) do struct - |> cast(params, [:audio_path, :transcription_file_path, :audio_duration]) - |> validate_required([:audio_path, :transcription_file_path, :audio_duration]) + |> cast(params, [:audio_path, :audio_name, :audio_duration]) + |> validate_required([:audio_path, :audio_name, :audio_duration]) end end -- cgit v1.2.1