greyblake / blogo

Mountable blog engine for Ruby on Rails
MIT License
105 stars 55 forks source link

Interference between users and blogo_users #46

Open jengweneg opened 8 years ago

jengweneg commented 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

jengweneg commented 8 years ago

Looks like blogo is fetching data from table users as well