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.
ユーザーがジャーナルエントリを作成して保存できる機能の1つであるRailsアプリを構築しています。それぞれの PostgreSQL テーブルからすべてのジャーナル エントリを削除したいのですが、どうすればよいですか?
# assuming your journal entries are a model named Entry Entry.find(:all).each { |e| e.destroy! }
おそらく最も効率的な方法ではありませんが、それはあなたが求めることを行います。