#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 Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Pages