Skip to content
Browse files

Add forgotten migration for second photo.

  • Loading branch information...
1 parent d9dd1f1 commit cbdaccd2207bfa4fd39d990201cff577fbea7340 @denispeplin committed Dec 21, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 db/migrate/20121219174959_add_attachment_photo2_to_products.rb
View
11 db/migrate/20121219174959_add_attachment_photo2_to_products.rb
@@ -0,0 +1,11 @@
+class AddAttachmentPhoto2ToProducts < ActiveRecord::Migration
+ def self.up
+ change_table :products do |t|
+ t.has_attached_file :photo2
+ end
+ end
+
+ def self.down
+ drop_attached_file :products, :photo2
+ end
+end

0 comments on commit cbdaccd

Please sign in to comment.
Something went wrong with that request. Please try again.