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
-

Paul Sadauskas (Rando) August 21st, 2008 @ 11:41 AM
- → State changed from new to open
- → Assigned user changed from Sam Smoot to Paul Sadauskas (Rando)
-

Paul Sadauskas (Rando) August 21st, 2008 @ 11:48 AM
Confirmed. It would probably be sufficient to borrow the TableCreator::Column class (like is done in TableModifier#add_column) to fill in the type.
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 »
