Sha256: 2bbc8c62f0ae9359f0a69a4de19a945c94a046ad4ec8844f86b300a1eb472cf9

Contents?: true

Size: 201 Bytes

Versions: 11

Compression:

Stored size: 201 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

11 entries across 11 versions & 1 rubygems

Version Path
ruby_gallery-0.2.9 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.2.7 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.2.6 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.2.5 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.2.4 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.2.2 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.2.1 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.1.9 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.1.8 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.1.7 lib/generators/active_record/templates/migration.rb
ruby_gallery-0.1.6 lib/generators/active_record/templates/migration.rb