Skip to content

Commit 307845d

Browse files
committed
give credit for idea...#65
1 parent e287013 commit 307845d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/upsert/merge_function/postgresql.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def create!
109109
names = setter_column_definitions.map(&:quoted_name).join(', ')
110110
values = setter_column_definitions.map(&:to_setter_value).join(', ')
111111
update_pair = update_column_definitions.map(&:to_setter).join(', ')
112+
#Solution based on based on https://github.com/seamusabshere/upsert/pull/65
112113
if @time_stamp_cols.count > 0
113114
names += ', created_at, updated_at'
114115
values += ", now(), now()"

0 commit comments

Comments
 (0)