Add video metadata to events

This commit is contained in:
Henne Vogelsang 2013-06-26 12:34:47 +02:00 committed by Henne Vogelsang
parent dc0560b848
commit 94e014ac40
3 changed files with 10 additions and 2 deletions

View file

@ -2,7 +2,7 @@ class Event < ActiveRecord::Base
include ActiveRecord::Transitions
has_paper_trail
attr_accessible :title, :subtitle, :abstract, :description, :event_type_id, :people_attributes, :person,
:proposal_additional_speakers, :track_id
:proposal_additional_speakers, :track_id, :video_id, :video_type
acts_as_commentable
has_many :event_people, :dependent => :destroy

View file

@ -0,0 +1,6 @@
class AddVideoIdToEvents < ActiveRecord::Migration
def change
add_column :events, :video_id, :string
add_column :events, :video_type, :string
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20130515131420) do
ActiveRecord::Schema.define(:version => 20130626095459) do
create_table "call_for_papers", :force => true do |t|
t.date "start_date", :null => false
@ -142,6 +142,8 @@ ActiveRecord::Schema.define(:version => 20130515131420) do
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.text "proposal_additional_speakers"
t.string "video_id"
t.string "video_type"
end
create_table "people", :force => true do |t|