# :data, upload help

**URL:** <https://www.ruby-forum.com/t/data-upload-help/144725>\
**Category:** Rails\
**Created:** [August 1, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/data-upload-help/144725 "2008-08-01T15:22:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpierry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Post date:** [August 1, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/data-upload-help/144725/1 "2008-08-01T15:22:26Z")

</div>

Hi,

Im using the latest version of Rails and after reading Agile Web  
Developments with Rails which uses version 1.2.6 im wondering how to use  
the :data in a migration.

Im wanting to provide an upload for my end user to a database and in the  
book it uses;

t.column :data, :binary, :limit =\> 1.megabyte

How can I get this working for the latest version?

Thanks!
