Open jengweneg opened 8 years ago
Hello,
I am using blogo as an engine in my exisitng rails app which has a table users.
I get this error when adding a blog post
PG::ForeignKeyViolation: ERROR: insert or update on table "blogo_posts" violates foreign key constraint "fk_blogo_posts_user_id" DETAIL: Key (user_id)=(2) is not present in table "users". : INSERT INTO "blogo_posts" ("created_at", "html_content", "markup_lang", "meta_description", "meta_image", "permalink", "published", "published_at", "raw_content", "title", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"
Thanx Eric
Looks like blogo is fetching data from table users as well
Hello,
I am using blogo as an engine in my exisitng rails app which has a table users.
I get this error when adding a blog post
PG::ForeignKeyViolation: ERROR: insert or update on table "blogo_posts" violates foreign key constraint "fk_blogo_posts_user_id" DETAIL: Key (user_id)=(2) is not present in table "users". : INSERT INTO "blogo_posts" ("created_at", "html_content", "markup_lang", "meta_description", "meta_image", "permalink", "published", "published_at", "raw_content", "title", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"
Thanx Eric