Sandra icon indicating copy to clipboard operation
Sandra copied to clipboard

"column" and "key_attribute" ask for 'type' argument

Open geraudmathe opened this issue 13 years ago • 2 comments

Hi,

When I define a key_attribute or a column in my models , that throw an error cause i'm not giving the 'type' argument , but i cant see what sort of type argument it corresponds to ? Your screencast didnt help me more about it . Could u give me some more infos about this 'type' argument ? Txs

geraudmathe avatar Apr 09 '12 16:04 geraudmathe

using rails 3.2, cassandra 1.0.9

geraudmathe avatar Apr 09 '12 16:04 geraudmathe

It takes a symbol. I currently don't have the typing implemented. I'd like to do the conversions after pulling from cassandra. (For example, specifying :integer would call to_i on the string I get back from Cassandra and give you an integer back.)

cmaxw avatar Apr 13 '12 19:04 cmaxw