Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Double insertion to refinery_blog_categories_blog_posts #364

Closed
yosiyuki opened this Issue Dec 9, 2013 · 1 comment

Comments

Projects
None yet
2 participants

yosiyuki commented Dec 9, 2013

after the fix for #361 blog category insert twice when create a post.

  SQL (0.5ms)  INSERT INTO "refinery_blog_post_translations" ("body", "created_at", "custom_teaser", "custom_url", "locale", "refinery_blog_post_id", "slug", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)  [["body", nil], ["created_at", Mon, 09 Dec 2013 14:52:06 JST +09:00], ["custom_teaser", nil], ["custom_url", nil], ["locale", "ja"], ["refinery_blog_post_id", nil], ["slug", nil], ["title", nil], ["updated_at", Mon, 09 Dec 2013 14:52:06 JST +09:00]]
  SQL (0.2ms)  INSERT INTO "seo_meta" ("browser_title", "created_at", "meta_description", "seo_meta_id", "seo_meta_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  [["browser_title", ""], ["created_at", Mon, 09 Dec 2013 14:52:06 JST +09:00], ["meta_description", ""], ["seo_meta_id", 12], ["seo_meta_type", "Refinery::Blog::Post::Translation"], ["updated_at", Mon, 09 Dec 2013 14:52:06 JST +09:00]]
  SQL (0.2ms)  INSERT INTO "refinery_blog_posts" ("access_count", "body", "created_at", "custom_teaser", "custom_url", "draft", "published_at", "slug", "source_url", "source_url_title", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)  [["access_count", 0], ["body", "ああああ"], ["created_at", Mon, 09 Dec 2013 14:52:06 JST +09:00], ["custom_teaser", ""], ["custom_url", ""], ["draft", false], ["published_at", Mon, 09 Dec 2013 14:51:00 JST +09:00], ["slug", "--7"], ["source_url", ""], ["source_url_title", ""], ["title", "新しいニュースがだめなのかな?"], ["updated_at", Mon, 09 Dec 2013 14:52:06 JST +09:00], ["user_id", 1]]
   (0.2ms)  UPDATE "refinery_blog_post_translations" SET "title" = '新しいニュースがだめなのかな?', "body" = 'ああああ', "custom_teaser" = '', "custom_url" = '', "slug" = '--7', "updated_at" = '2013-12-09 05:52:06.715729' WHERE "refinery_blog_post_translations"."id" = 12
  SQL (0.1ms)  INSERT INTO "refinery_blog_categories_blog_posts" ("blog_category_id", "blog_post_id") VALUES (?, ?)  [["blog_category_id", 1], ["blog_post_id", 12]]
  SeoMetum Load (0.1ms)  SELECT "seo_meta".* FROM "seo_meta" WHERE "seo_meta"."seo_meta_type" = 'Refinery::Blog::Post' AND "seo_meta"."seo_meta_id" = 12 LIMIT 1
  SQL (0.2ms)  INSERT INTO "seo_meta" ("browser_title", "created_at", "meta_description", "seo_meta_id", "seo_meta_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  [["browser_title", nil], ["created_at", Mon, 09 Dec 2013 14:52:06 JST +09:00], ["meta_description", nil], ["seo_meta_id", 12], ["seo_meta_type", "Refinery::Blog::Post"], ["updated_at", Mon, 09 Dec 2013 14:52:06 JST +09:00]]
  ActsAsTaggableOn::Tag Load (0.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 12 AND "taggings"."taggable_type" = 'Refinery::Blog::Post' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
   (0.1ms)  UPDATE "refinery_blog_post_translations" SET "refinery_blog_post_id" = 12, "updated_at" = '2013-12-09 05:52:06.721297' WHERE "refinery_blog_post_translations"."id" = 12
  SQL (0.1ms)  INSERT INTO "refinery_blog_categories_blog_posts" ("blog_category_id", "blog_post_id") VALUES (?, ?)  [["blog_category_id", 1], ["blog_post_id", 12]]
  ActsAsTaggableOn::Tag Load (0.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 12 AND "taggings"."taggable_type" = 'Refinery::Blog::Post' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
   (66.7ms)  commit transaction
Owner

parndt commented Aug 24, 2014

Still?

@parndt parndt closed this Aug 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment