16.10.2020, 13:22
You can insert data like this. But you have to carefully fill all fields, there's no guarantee that it will work if some field value are incorrect.
Code:
db:insert('scheduler_events', {
start_hour = startHr,
start_min = startMin,
-- remaining fields here
})