class CreateProductDocuments < ActiveRecord::Migration
  def change
    create_table :product_documents do |t|
      t.string :title, :null => false
      t.string :uri, :null => false
      t.references :product

      t.timestamps
    end
    add_index :product_documents, :product_id
  end
end
