Sha256: 55247adf5b89c2c79c8626f6d7db13dced3ece93489da0bfa0ca4d4ac7a48a1a

Contents?: true

Size: 357 Bytes

Versions: 22

Compression:

Stored size: 357 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

22 entries across 22 versions & 4 rubygems

Version Path
shoppe-0.0.11 test/dummy/db/migrate/20131017165217_create_nifty_attachments_table.rb
nifty-attachments-1.0.0 lib/nifty/attachments/migration.rb