photomix/db/migrate/20100412220801_add_file_to_photo.rb
Alexander Negoda e59d11e1c9 big update
2012-07-25 01:26:16 +04:00

9 lines
178 B
Ruby

class AddFileToPhoto < ActiveRecord::Migration
def self.up
add_column :photos, :attachment, :string
end
def self.down
remove_column :photos, :attachment
end
end