{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuchinoinu.hatenablog.jp%2Fentry%2F2015%2F03%2F31%2F113034_1\" title=\"try update_all as bulk update like bulk insert - \u3046\u3061\u306e\u3044\u306c Tech Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"width":"100%","title":"try update_all as bulk update like bulk insert","blog_title":"\u3046\u3061\u306e\u3044\u306c Tech Blog","provider_name":"Hatena Blog","categories":[],"version":"1.0","type":"rich","url":"https://uchinoinu.hatenablog.jp/entry/2015/03/31/113034_1","blog_url":"https://uchinoinu.hatenablog.jp/","published":"2015-03-31 00:00:00","description":"to use bulk insert on Rails, add gem below. gem 'activerecord-import' In MySQL, bulk update can be used by this gem, but postgres..... sqlite..... update_all solution! # make all records with open: false to open: true Shop.where(open: false).update_all(open: true) # Update all shops with the given a\u2026","provider_url":"https://hatena.blog","height":"190","author_name":"susanne","author_url":"https://blog.hatena.ne.jp/susanne/"}