<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuronekopunk</author_name>
  <author_url>https://blog.hatena.ne.jp/kuronekopunk/</author_url>
  <blog_title>ノンカフェインであなたにやさしい</blog_title>
  <blog_url>https://akinobu.net/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>RailsでDBに配列を保存する方法 serialize :column_name を指定 RailsでDBに配列を保存する方法(サンプルコード) class Hoge &lt; ApplicationRecord serialize :arr end hoge = Hoge.new(arr: [1, 2, 3]) puts hoge.arr # =&gt; [1, 2, 3] Arrayと明示するとこういう使い方もできるみたい class Hoge &lt; ApplicationRecord serialize :arr, Array end hoge = Hoge.new hoge.arr &lt;&lt; 1 &lt;&lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakinobu.net%2Fentry%2F2017%2F06%2F19%2F190306&quot; title=&quot;RailsでDBに配列Arrayを保存する - ノンカフェインであなたにやさしい&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-19 19:03:06</published>
  <title>RailsでDBに配列Arrayを保存する</title>
  <type>rich</type>
  <url>https://akinobu.net/entry/2017/06/19/190306</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
