From 94e014ac40783006499eb754c0d21546da0e2d6a Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Wed, 26 Jun 2013 12:34:47 +0200 Subject: [PATCH] Add video metadata to events --- app/models/event.rb | 2 +- db/migrate/20130626095459_add_video_id_to_events.rb | 6 ++++++ db/schema.rb | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20130626095459_add_video_id_to_events.rb diff --git a/app/models/event.rb b/app/models/event.rb index be6b1d64..78344279 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -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 diff --git a/db/migrate/20130626095459_add_video_id_to_events.rb b/db/migrate/20130626095459_add_video_id_to_events.rb new file mode 100644 index 00000000..14f034e4 --- /dev/null +++ b/db/migrate/20130626095459_add_video_id_to_events.rb @@ -0,0 +1,6 @@ +class AddVideoIdToEvents < ActiveRecord::Migration + def change + add_column :events, :video_id, :string + add_column :events, :video_type, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index ef3cdbd6..9acc0c8f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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|