Sha256: 4eb71ac51e9563c70a96a49f58ee8b7faac4e4457fbb092dc3d8ea59882e9502

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

class CreateNiftyAttachmentsTable < ActiveRecord::Migration

  def up
    create_table :nifty_attachments do |t|
      t.integer :parent_id
      t.string  :parent_type, :token, :digest, :role, :file_name, :file_type
      t.binary :data, :limit => 10.megabytes
      t.timestamps
    end
  end

  def down
    drop_table :nifty_attachments
  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/nifty-attachments-1.0.4/lib/nifty/attachments/migration.rb
nifty-attachments-1.0.4 lib/nifty/attachments/migration.rb