title: Why ActiveRecord::Store.store_acessor doesn't reflect on the resulting SQL when querying
body: <p>Consider  this class:</p>
  
  <pre class="lang-rb prettyprint-override"><code>class UsersMigration &lt; ActiveRecord::Migration[5.2]
    def change
      create_table(:users) do |t|
        t.hstore  :settings
      end
    end
  end
  
  class User &lt; ActiveRecord::Base
    store_accessor :settings, :privileges, :colors
  end
  </code></pre>
  
  <p>When doing this Query:</p>
  
  <pre class="lang-rb prettyprint-override"><code>User.where(privileges: 'Admin')
  </code></pre>
  
  <p>It results in this error:
  <code>ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR:  column users.privileges does not exist)</code>
  and is right because the column is actually settings</p>
  
  <p>In order to make the query we have to do this: </p>
  
  <pre class="lang-rb prettyprint-override"><code>User.where("settings-&gt;'privileges' = 'Admin'")
  </code></pre>
  
  <p>If the model already has explicit serialization to an hstore column why the first query doesn't result in the following SQL:</p>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT  "user".* FROM "users" WHERE (settings-&gt;'privileges' = 'Admin')
  </code></pre>