Sha256: 57b8db78e8b52ff0d38812ed1bdde5e368d8e666541442b11fee12fd185dd4a7

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
irwi-0.2.4 generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
irwi-0.2.3 generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
irwi-0.2.2 generators/irwi_wiki_updates/templates/migrate/create_wiki_page_attachments.rb
irwi-0.2.1 generators/irwi_wiki_updates/templates/migrate/create_wiki_page_attachments.rb
irwi-0.2.0 generators/irwi_wiki_updates/templates/migrate/create_wiki_page_attachments.rb