I am trying to insert a record into an Oracle database
I have a class that inherits from ActiveRecord:
DuplicateTransaction < ActiveRecord::Base
set_table_name "TRANSACTION"
I then try and insert using this:
DuplicateTransaction.create(key_id: '100123', transaction_uuid: '100111',
expiry_datetime:'CURRENT_DATE', date_modified: 'CURRENT_DATE', date_created:
'CURRENT_DATE')
The sql that comes out is:
INSERT INTO "TRANSACTION" ("date_created", "date_modified", "expiry_datetime", "id",
"key_id", "transaction_uuid")
The double quotes are making the column names case sensitive and giving me the error: ActiveRecord::StatementInvalid (ActiveRecord::JDBCError: ORA-00904: "transaction_uuid": invalid identifier
How can I either get rid of the double quotes or capitalize the column names?