def column(colname,type,options={})
colname = colname.to_s
@columns << colname
col = conn.columns(name).find {|c| c.name == colname }
assert_not_nil col, "column <#{colname}> not found in table <#{self.name}>"
assert_equal type, col.type, "wrong type for column <#{colname}> in table <#{name}>"
options.each do |k,v|
k = k.to_sym; actual = col.send(k); actual = actual.is_a?(String) ? actual.sub(/'$/,'').sub(/^'/,'') : actual
assert_equal v, actual, "column <#{colname}> in table <#{name}> has wrong :#{k}"
end
end