Displaying 1 result from an estimated 1 matches for "onlinerating".
Did you mean:
obliterating
2007 Mar 28
1
Migration w/change_column fails on MySQL 5.1
All,
I have a migration with statements like this:
change_column :quote_input_class_codes, :employee_payroll, :integer,
:default => 0, :null => false
When I migrate, I get:
(in C:/eclipse/workspace/OnlineRating)
== DefaultQiccPayrollsToZero: migrating
=======================================
-- change_column(:quote_input_class_codes, :employee_payroll, :integer,
{:null=>false, :default=>0})
rake aborted!
Mysql::Error: Data truncated for column ''employee_payroll'' at row 1:
ALTER TABL...