mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Also dup column_types
in AR::Result initialize_copy
This commit is contained in:
parent
3cc64df92e
commit
f511eac2c1
1 changed files with 4 additions and 3 deletions
|
@ -83,9 +83,10 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def initialize_copy(other)
|
||||
@columns = columns.dup
|
||||
@rows = rows.dup
|
||||
@hash_rows = nil
|
||||
@columns = columns.dup
|
||||
@rows = rows.dup
|
||||
@column_types = column_types.dup
|
||||
@hash_rows = nil
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue