Sha256: d29ea86f6d2624eadbea1f94cac2eb9c2f120c413b0282e89edbb068f54200be

Contents?: true

Size: 432 Bytes

Versions: 6

Compression:

Stored size: 432 Bytes

Contents

class CreateWikiPageAttachments < ActiveRecord::Migration

  def self.up
    create_table :wiki_page_attachments do |t|
      t.integer :page_id, :null => false # Reference to page
      t.string   :wiki_page_attachment_file_name
      t.string   :wiki_page_attachment_content_type
      t.integer  :wiki_page_attachment_file_size

      t.timestamps
    end

  end

  def self.down
    drop_table :wiki_page_attachments
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
irwi-0.5.0 lib/generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
irwi_mod-0.0.2 lib/generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
irwi_mod-0.0.1 lib/generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
irwi-0.4.2 lib/generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
irwi-0.4.1 lib/generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
irwi-0.4.0 lib/generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb