mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add video metadata to events
This commit is contained in:
parent
dc0560b848
commit
94e014ac40
3 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
6
db/migrate/20130626095459_add_video_id_to_events.rb
Normal file
6
db/migrate/20130626095459_add_video_id_to_events.rb
Normal 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
|
||||
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue