Skip to content

Commit

Permalink
Add forgotten migration for second photo.
Browse files Browse the repository at this point in the history
  • Loading branch information
denispeplin committed Dec 21, 2012
1 parent d9dd1f1 commit cbdaccd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions db/migrate/20121219174959_add_attachment_photo2_to_products.rb
Original file line number Diff line number Diff line change
@@ -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.