Refactoring Conference/Event media to new media object

close #420
This commit is contained in:
Chrisbr 2014-08-05 18:23:42 +02:00
parent 850beb72e1
commit 2a731e8350
31 changed files with 491 additions and 57 deletions

View file

@ -0,0 +1,10 @@
class CreateCommercials < ActiveRecord::Migration
def change
create_table :commercials do |t|
t.string :commercial_id
t.string :commercial_type
t.references :commercialable, polymorphic: true
t.timestamps
end
end
end