Sha256: 14984361f5aa6622043a26806aba862a247d87b84532da1bcd7240ff0e02de2d

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

class CreateFileBlocks < ActiveRecord::Migration
  def self.up
    create_versioned_table :file_blocks do |t|
      t.string :type
      t.string :name
      t.integer :attachment_id
      t.integer :attachment_version
    end
    ContentType.create!(:name => "FileBlock", :group_name => "Core")
    ContentType.create!(:name => "ImageBlock", :group_name => "Core")        
  end

  def self.down
    drop_versioned_table :file_blocks
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nate-browsercms-3.0.210 db/migrate/20080922215729_create_file_blocks.rb
nate-browsercms-3.0.211 db/migrate/20080922215729_create_file_blocks.rb