I'm trying to save a BossRecord to the database using pgsql adapter, of this way:
boss_db:save_record(admins:new("admins-1", 1)).
In ChicagoBoss's shell this returns:
{ok,{admins,"admins-1",1}}
But the record is not actually being saved in the database.
This is my table:
CREATE TABLE admins("
"ID integer primary key,"
"user_ID integer"
")
My model:
-module(admins, [Id, UserId]).
-compile(export_all).
Thanks.