search for: 22michael

Displaying 1 result from an estimated 1 matches for "22michael".

Did you mean: 00michael
2008 Jul 04
1
datatype problem when using ActiveRecord with Oracle
...ype ''number(1)''. I found that ActiveRecord maps this attribute to boolean. So it gets a class of either FalseClass or TrueClass. I tried to find the source of the problem and I found oracle_adapter.rb (http:// www.koders.com/ruby/fidAF6400E299159A198A4064173CF305C895FCA945.aspx?s=%22Michael+Schoen%22#L5) has a method ''simplified_field'' that has a line "return :boolean if OracleAdapter.emulate_booleans && field_type == ''NUMBER(1)''". I tried overriding this method on my environment.rb and commented out this line. This problem is solv...