2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2014-08-05 18:23:42 +02:00
|
|
|
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
|