Sha256: fd1649d5384d8479f144e817a1a921cd8aac6d3f7e022f4f9bbda9b2ca7d1e87

Contents?: true

Size: 251 Bytes

Versions: 1

Compression:

Stored size: 251 Bytes

Contents

class CreateAlbumAttachment < ActiveRecord::Migration
  def up
    create_table :album_attachments do |a|
      a.string :parent_type
      a.integer :parent_id
      a.timestamps
    end
  end
  
  def down
    drop_table :album_attachments
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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