public
Created

sqlite_adapter.rb patch for precision/scale updates (rails 3.0)

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
File:
ruby-1.9.2-p0/lib/ruby/gems/1.9/gems/activerecord-3.0.0/lib/active_record/connection_adapters/sqlite_adapter.rb
 
Method: copy_table (line 315 in my copy)
 
Update the following:
@definition.column(column_name, column.type,
:limit => column.limit, :default => column.default,
:null => column.null)
 
to:
@definition.column(column_name, column.type,
:limit => column.limit, :default => column.default,
:precision => column.precision, :scale => column.scale,
:null => column.null)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.