Sha256: ab54b9bfed3bea887e0ee0065e2b49db2cb9406c7de1e160f9e8430542405e1b

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

class CreateAttachments < ActiveRecord::Migration
  def change
    create_table :attachments do |t|
      t.string :name, length: 64, null: false
      t.string :mime_type, length: 64, null: false
      t.binary :data, null: false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binary_fixtures-0.1.1 test/migrations/001_create_attachments.rb
binary_fixtures-0.1.0 test/migrations/001_create_attachments.rb