#536 open
Mark Bates

modify_table in migrations doesn't use property syntax

Reported by Mark Bates | August 21st, 2008 @ 09:18 AM

When you're doing a modify_table call in migrations you can't use the property syntax like such:


modify_table(:pages) do
  change_column :title, String, :size => 250
end

Instead you have to use straight SQL like such:


modify_table(:pages) do
  change_column :title, 'varchar(250)'
end

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins