I have these hashes as output which i need to push into an array without overwriting.

```
output1= {:user_id=>9, :project_id=>4, :task_id=>87,  :comment=>"Test 20"}
output2 = {:user_id=>9, :project_id=>12, :task_id=>105,:comment=>"Test 21"}

```

I need to push these 2 output into a single array when I iterate through the loop. What is happening right now is that when I push the second output into the array it overwrites the first too and below is the result that I get.

```
Entry_array=[{:user_id=>9,:project_id=>12,:task_id=>105,:comment=>"Test 21"}, 
{:user_id=>9, :project_id=>12, :task_id=>105,:comment=>"Test 21"}]

```

I want the result of the hash output1 and hash output2 to be combined.
Thanks appreciate all the help.

This is the code that i am using 

```
   attributes =[:user_id,:project_id,task_id,:comment]
   entry_array=[]
   output = {}

   CSV.foreach(csv_file, headers: true, converters: :date).with_index do |row,line_no|
   entry_hash= row.to_hash
   .....some code here where we get the entry_hash....
     i=0

     entry_array <<output
   end 

```