# Migration column options not in schema.rb?

**URL:** <https://www.ruby-forum.com/t/migration-column-options-not-in-schema-rb/108768>\
**Category:** Rails\
**Created:** [July 6, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/migration-column-options-not-in-schema-rb/108768 "2007-07-06T21:21:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vfcforums](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Post date:** [July 6, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/migration-column-options-not-in-schema-rb/108768/1 "2007-07-06T21:21:21Z")

</div>

Forgive me if this has been discussed. I’m new to rails and not sure  
where to check yet. Also… forgive me if this shows up twice. I tried  
posting first through the google groups interface and I’m not sure if it  
went through.

I have rails 1.2.3 installed.

I have a migration that looks like

create\_table :test\_runs do |t|  
t.column :test\_spec\_id, :integer  
t.column :parent\_id, :integer  
t.column :hostname, :string  
t.column :start\_time, :datetime  
t.column :duration, :decimal  
t.column :result, :string  
t.column :xml\_result, :text, :limit =\> 10.megabytes  
end

after running “rake db:migrate”… the schema.rb contains

create\_table “test\_runs”, :force =\> true do |t|  
t.column “test\_spec\_id”, :integer  
t.column “parent\_id”, :integer  
t.column “hostname”, :string  
t.column “start\_time”, :datetime  
t.column “duration”, :integer, :limit =\> 10, :precision =\>  
10, :scale =\> 0  
t.column “result”, :string  
t.column “xml\_result”, :text  
end

Note that the :limit option for the column :xml\_result has not carried  
over to the schema.rb file.

Is this a known issue?

thanks,  
-frank

---

<div class="post-metadata">

**Author:** ![vfcforums](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@vfcforums](https://www.ruby-forum.com/u/vfcforums)\
**Post date:** [July 9, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/migration-column-options-not-in-schema-rb/108768/2 "2007-07-09T18:07:24Z")

</div>

Am I the only one seeing this? Thanks, frank

On Jul 6, 12:21 pm, Frank C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
