Created migration to add video_url to poll questions

This commit is contained in:
María Checa
2017-09-05 18:32:33 +02:00
parent ee3b3f2c85
commit 39a2d25921
2 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddVideoUrlToPollQuestions < ActiveRecord::Migration
def change
add_column :poll_questions, :video_url, :string
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170720092638) do
ActiveRecord::Schema.define(version: 20170905111444) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -662,6 +662,7 @@ ActiveRecord::Schema.define(version: 20170720092638) do
t.datetime "created_at"
t.datetime "updated_at"
t.tsvector "tsv"
t.string "video_url"
end
add_index "poll_questions", ["author_id"], name: "index_poll_questions_on_author_id", using: :btree
@@ -669,6 +670,20 @@ ActiveRecord::Schema.define(version: 20170720092638) do
add_index "poll_questions", ["proposal_id"], name: "index_poll_questions_on_proposal_id", using: :btree
add_index "poll_questions", ["tsv"], name: "index_poll_questions_on_tsv", using: :gin
create_table "poll_recounts", force: :cascade do |t|
t.integer "booth_assignment_id"
t.integer "officer_assignment_id"
t.integer "count"
t.text "count_log", default: ""
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.date "date", null: false
t.text "officer_assignment_id_log", default: ""
end
add_index "poll_recounts", ["booth_assignment_id"], name: "index_poll_recounts_on_booth_assignment_id", using: :btree
add_index "poll_recounts", ["officer_assignment_id"], name: "index_poll_recounts_on_officer_assignment_id", using: :btree
create_table "poll_voters", force: :cascade do |t|
t.string "document_number"
t.string "document_type"
@@ -883,6 +898,32 @@ ActiveRecord::Schema.define(version: 20170720092638) do
add_index "tags", ["proposals_count"], name: "index_tags_on_proposals_count", using: :btree
add_index "tags", ["spending_proposals_count"], name: "index_tags_on_spending_proposals_count", using: :btree
create_table "tolk_locales", force: :cascade do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "tolk_locales", ["name"], name: "index_tolk_locales_on_name", unique: true, using: :btree
create_table "tolk_phrases", force: :cascade do |t|
t.text "key"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "tolk_translations", force: :cascade do |t|
t.integer "phrase_id"
t.integer "locale_id"
t.text "text"
t.text "previous_text"
t.boolean "primary_updated", default: false
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "tolk_translations", ["phrase_id", "locale_id"], name: "index_tolk_translations_on_phrase_id_and_locale_id", unique: true, using: :btree
create_table "users", force: :cascade do |t|
t.string "email", default: ""
t.string "encrypted_password", default: "", null: false