aboutsummaryrefslogtreecommitdiff
path: root/web/models
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-02-09 14:07:40 +0100
committerneodarz <neodarz@neodarz.net>2017-02-09 14:07:40 +0100
commite748d11bfd2232b77aeb5dae0d1e76ebb2988afb (patch)
treea30329b2fbab4dd583761f729f20d7bffa447cf9 /web/models
parente455009b1872815c4fad91c389af9f7a27a6ba28 (diff)
downloadthe_transcriber_backend-e748d11bfd2232b77aeb5dae0d1e76ebb2988afb.tar.xz
the_transcriber_backend-e748d11bfd2232b77aeb5dae0d1e76ebb2988afb.zip
Update the column name transcrib_file to audio_name
Diffstat (limited to 'web/models')
-rw-r--r--web/models/audio_file.ex6
-rw-r--r--web/models/audio_file_api.ex2
2 files changed, 4 insertions, 4 deletions
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()