Sha256: 5e744d0f9d08fc166c722972d3c6dd08971e9deeea93e0e3f70bdbc43b94ed08

Contents?: true

Size: 224 Bytes

Versions: 1

Compression:

Stored size: 224 Bytes

Contents

class RubyGalleryAddColumnTo<%= table_name.camelize %> < ActiveRecord::Migration
  def self.up
    add_attachment :<%= table_name %>, :photo
  end
  
  def self.down
    remove_attachment :<%= table_name %>, :photo
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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