Sha256: 547361655177d46d100c2dcc72f3a3a61c56caa659ac566fceb3accfa5fc8906

Contents?: true

Size: 305 Bytes

Versions: 61

Compression:

Stored size: 305 Bytes

Contents

class CreateAttachments < ActiveRecord::Migration
  def self.up
    create_table :attachments do |t|
      t.string :name
      t.string :filename
      t.string :content_type
      t.integer :size
      t.userstamps
      t.timestamps
    end
  end

  def self.down
    drop_table :attachments
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
alchemy_cms-2.3.2 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.4 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.3.1 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.3.2 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.3.1 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.1.12 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.3.0 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.3.rc5 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.2 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.1 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.0 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.rc15 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.0.7 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.1.11 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.rc14 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.rc13 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.rc11 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.rc8 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.2.rc7 db/migrate/20100607150812_create_attachments.rb
alchemy_cms-2.1.9.1 db/migrate/20100607150812_create_attachments.rb