Use define method instead of class_eval

reverted back the changes for the Gemfile

changed the second method from class_eval to use define_method. Also, changes the type in the array to be a symbol using column_type.to_sym

created an inline call to column_type.to_sym

removed unnecessarily deprecated comments