Sha256: 22e3b97fa3f8dd8ced5941c84f7e1f383fadcde190bcc1d14d1a2a3d46ffc652

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

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

  def self.down
    drop_table :attachments
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lipsiadmin-5.1.9 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-5.1.8 lipsiadmin_generators/attachment/templates/migration.rb
lipsiadmin-5.1.7 lipsiadmin_generators/attachment/templates/migration.rb