Remove obsolete video_url column in poll_questions table
This column isn't used since commit4c0deb0ecbecause administrators can associate videos to the answers since commit5862eea51. The value of this attribute isn't used in the public area since commit8277e3cc2.
This commit is contained in:
@@ -100,11 +100,3 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<% if @question.video_url.present? %>
|
|
||||||
<p>
|
|
||||||
<strong><%= t("admin.questions.show.video_url") %></strong>
|
|
||||||
<br>
|
|
||||||
<a href="<%= @question.video_url %>"><%= @question.video_url %></a>
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
|
|||||||
@@ -1166,7 +1166,6 @@ en:
|
|||||||
edit_question: Edit question
|
edit_question: Edit question
|
||||||
valid_answers: Valid answers
|
valid_answers: Valid answers
|
||||||
add_answer: Add answer
|
add_answer: Add answer
|
||||||
video_url: External video
|
|
||||||
answers:
|
answers:
|
||||||
title: Answer
|
title: Answer
|
||||||
description: Description
|
description: Description
|
||||||
|
|||||||
@@ -1166,7 +1166,6 @@ es:
|
|||||||
edit_question: Editar pregunta
|
edit_question: Editar pregunta
|
||||||
valid_answers: Respuestas válidas
|
valid_answers: Respuestas válidas
|
||||||
add_answer: Añadir respuesta
|
add_answer: Añadir respuesta
|
||||||
video_url: Vídeo externo
|
|
||||||
answers:
|
answers:
|
||||||
title: Respuesta
|
title: Respuesta
|
||||||
description: Descripción
|
description: Descripción
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
class RemovePollQuestionsVideoUrl < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
remove_column :poll_questions, :video_url, :string
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.0].define(version: 2024_10_26_112901) do
|
ActiveRecord::Schema[7.0].define(version: 2025_02_22_222739) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pg_trgm"
|
enable_extension "pg_trgm"
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
@@ -1138,7 +1138,6 @@ ActiveRecord::Schema[7.0].define(version: 2024_10_26_112901) do
|
|||||||
t.datetime "created_at", precision: nil
|
t.datetime "created_at", precision: nil
|
||||||
t.datetime "updated_at", precision: nil
|
t.datetime "updated_at", precision: nil
|
||||||
t.tsvector "tsv"
|
t.tsvector "tsv"
|
||||||
t.string "video_url"
|
|
||||||
t.index ["author_id"], name: "index_poll_questions_on_author_id"
|
t.index ["author_id"], name: "index_poll_questions_on_author_id"
|
||||||
t.index ["poll_id"], name: "index_poll_questions_on_poll_id"
|
t.index ["poll_id"], name: "index_poll_questions_on_poll_id"
|
||||||
t.index ["proposal_id"], name: "index_poll_questions_on_proposal_id"
|
t.index ["proposal_id"], name: "index_poll_questions_on_proposal_id"
|
||||||
|
|||||||
Reference in New Issue
Block a user