Sha256: 6ab6a742aaf10acf710ed09db0fde49e08f4b5800ee5af4e51645a2c8f9da915

Contents?: true

Size: 352 Bytes

Versions: 9

Compression:

Stored size: 352 Bytes

Contents

class CreateAttachments < ActiveRecord::Migration
  def self.up
    create_table :attachments, :force => true do |t|
      t.string  :attached_file_name, :attached_content_type
      t.integer :attached_file_size
      t.references :attacher, :polymorphic => true
      t.timestamps
    end
  end

  def self.down
    drop_table :attachments
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lipsiadmin-3.3.3 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-3.3.4 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-3.4.2 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-3.4.0 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-3.4.1 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-4.1.0 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-4.0.0 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-4.1.1 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-4.1.2 lipsiadmin_generators/attachment/templates/migration.rb