<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>HeRo</author_name>
  <author_url>https://blog.hatena.ne.jp/HeRo/</author_url>
  <blog_title>アクトインディ開発者ブログ</blog_title>
  <blog_url>https://tech.actindi.net/</blog_url>
  <categories>
    <anon>morishita</anon>
    <anon>Rails</anon>
    <anon>ActiveRecord</anon>
    <anon>ruby</anon>
  </categories>
  <description>morishitaです。 今回はActive FlagというGemを紹介します。 このGemはActiveRecordのモデルでBIt Arrayなカラムを扱いやすくしてくれます。 github.com こういう要件ってありますよね？ ON/OFFできるユーザ設定をたくさん持たせたい 選択肢を複数選択できる選択項目を持たせたい これらをDBに保存できるように実現するにはどのような実装をするでしょうか？ 前者の場合、素朴に実装するとBooleanを格納する属性を設定項目分だけ作る方法が考えられます。 1つ、２つの項目ならそれでもいいでしょう。 でもそれ以上になると、テーブルのカラムがやたら増えて…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.actindi.net%2F2019%2F05%2F13%2F091143&quot; title=&quot;Active Flagで効率的にフラグを実装する - アクトインディ開発者ブログ&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/153051778/1535593294179794</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-13 09:11:43</published>
  <title>Active Flagで効率的にフラグを実装する</title>
  <type>rich</type>
  <url>https://tech.actindi.net/2019/05/13/091143</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
