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 +++--- web/models/audio_file_api.ex | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'web/models') 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 diff --git a/web/models/audio_file_api.ex b/web/models/audio_file_api.ex index 15f2e42..802d179 100644 --- a/web/models/audio_file_api.ex +++ b/web/models/audio_file_api.ex @@ -6,7 +6,7 @@ defmodule TheTranscriberBackend.AudioFileAPI do schema "audio_file" do field :audio_path, :string - field :transcription_file_path, :string + field :audio_name, :string field :audio_duration, :string timestamps() -- cgit v1.2.1