Sha256: fc50f31a6b060e960443af86bad8dda30adfc551efb20db267a69d81ebbfca39

Contents?: true

Size: 200 Bytes

Versions: 2

Compression:

Stored size: 200 Bytes

Contents

class RubyGalleryAddColumnsToAlbumPhotos < ActiveRecord::Migration
  def self.up
    add_attachment :album_photos, :photo
  end
  
  def self.down
    remove_attachment :album_photos, :photo
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_gallery-0.3.0.6 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.3.0.4 lib/generators/active_record/templates/migration.rb