こんにちは皆さん、
2 人のクライアント向けに報酬プラグインを作成しました。このプラグインでは、ユーザーが報酬バッジを獲得するか、事前に定義されたタスクを完了することでポイントを貯めることができます。獲得したポイントは、管理者が報酬をアップロードしたポイントセンターで交換可能です。
プラグインリンク: GitHub - Ahmedgagan/discourse-rewards · GitHub
@satonotdead さんがこの問題に直面しています。
b:289:in `detect_enum_conflict!'
/home/user/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activerecord-6.1.4.1/lib/active_record/enum.rb:294:in `raise_conflict_error': You tried to define an enum named "status" on the model "DiscourseRewards::UserReward", but this will generate a instance method "applied?", which is already defined by another enum. (ArgumentError)
私はこの問題を再現できず、他のクライアントもこのプラグインで問題を起こしていません。
このプラグインをテストして、同様の問題に直面しているかどうかを共有してくれる方を探しています。また、もし解決策をご存知の方がいれば教えていただけませんか?
プラグインのテストをありがとうございます。
よろしくお願いいたします。
Ahmed
「いいね!」 7
はい、他のプラグインは機能しますが、報酬プラグインは機能しません。
クリーンインストールですが、何が間違っている可能性がありますか?このガイドに従いました。
This guide covers installation instructions in a development environment. For a production guide see: Install Discourse in production with the official supported instructions
So you want to set up Discourse on Ubuntu or Debian to hack on and develop with?
We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin!
Requirements
We suggest having at least 4 GB RAM and 2 CPU cores.
Current compatibility:
O…
「いいね!」 2
このコマンド bundle exec rake db:migrate を使用できますか?
「いいね!」 2
@Ahmed_Gagan このプラグインには、metaにトピックがありますか?複数のユースケースを持つ可能性のある機能を提案したいと思っていました。
「いいね!」 2
まだリリースしていませんが、数日中にリリースする予定です。
また、上記の件はクライアント側のインストール問題でした。
皆さん、ご協力ありがとうございました。