We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e287013 commit 307845dCopy full SHA for 307845d
lib/upsert/merge_function/postgresql.rb
@@ -109,6 +109,7 @@ def create!
109
names = setter_column_definitions.map(&:quoted_name).join(', ')
110
values = setter_column_definitions.map(&:to_setter_value).join(', ')
111
update_pair = update_column_definitions.map(&:to_setter).join(', ')
112
+ #Solution based on based on https://github.com/seamusabshere/upsert/pull/65
113
if @time_stamp_cols.count > 0
114
names += ', created_at, updated_at'
115
values += ", now(), now()"
0 commit comments