Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、次のクエリを作成しました。
patron.where.first(:Queued => 1)
これにより、レコード全体が返されます。必要なのは、という名前の列が 1 つだけですtime。何かのようなもの:
time
patron.where.first(:Queued => 1).get(:time)
これに関するアイデアはありますか?
patron.where(:Queued => 1).select(:time).first