adds video_url to proposals

This commit is contained in:
Juanjo Bazán
2015-09-14 21:40:03 +02:00
parent c9ec81a854
commit 817b5806ba
8 changed files with 26 additions and 14 deletions

View File

@@ -0,0 +1,5 @@
class AddVideoUrlToProposal < ActiveRecord::Migration
def change
add_column :proposals, :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: 20150914184018) do
ActiveRecord::Schema.define(version: 20150914191003) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -211,6 +211,7 @@ ActiveRecord::Schema.define(version: 20150914184018) do
t.datetime "updated_at", null: false
t.string "responsible_name", limit: 60
t.text "summary"
t.string "video_url"
end
add_index "proposals", ["author_id", "hidden_at"], name: "index_proposals_on_author_id_and_hidden_at", using: :btree