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
|
end
|
||||||
|
|
||||||
def initialize_copy(other)
|
def initialize_copy(other)
|
||||||
@columns = columns.dup
|
@columns = columns.dup
|
||||||
@rows = rows.dup
|
@rows = rows.dup
|
||||||
@hash_rows = nil
|
@column_types = column_types.dup
|
||||||
|
@hash_rows = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue