問題タブ [ruby-paranoia]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby-on-rails - act_as_paranoid から paranoia gem への移行
プロジェクトのソフト削除には、acts_as_paranoid gem( https://github.com/ActsAsParanoid/acts_as_paranoid ) を使用しました。プロジェクトは現在ライブ中です。この gem でいくつかの問題に直面し、paranoia gem ( https://github.com/rubysherpas/paranoia ) への移行を計画しました。移行中に考慮すべきことはありますか?
ruby-on-rails - really_destroy! の後でオブジェクトを再作成できますか? それ ?復元したくありませんが、同じ電子メールで新しいオブジェクトを作成します
パラノイア 2.4.2 を使用しています。私はreally_detroyを使用しました!ユーザーを「本当に破壊」します。現在、データベースで再作成することに失敗しています。
やった:
Student.create(email: "blabla@bla.com", profile: 342)
エラーメッセージは次のとおりです。
Student Exists (8.2ms) SELECT 1 AS one FROM "students" WHERE "students"."email" = $1 AND "students"."deleted_at" IS NULL LIMIT $2 [["email", "blabla@bla.com"], ["LIMIT", 1]]
何が起こっているのか誰か知っていますか?
どうも。