All this is good, however for some odd reason 888.length does not work, nor does validates_length_of. After some research I figured out then when dealing with numbers validates_length_of measures “byte size” and not how many digits the value has. Apparently it would have been better to use type string for the variables bank_account, and civil_id. That way “String”.length would return 6 hence the validation would work.
Problem is how do I change the database schema without writing complex migration files, or starting from scratch.