私は Rails の初心者です。OfflineExport というモデルがあります。テーブルには、このようなデータがあります
#<OfflineExport id: 2,
parameters:
{"project_id"=>"3",
"type"=>"submissions",
"filters"=>{"task_type"=>"",
"corrections"=>"", "grade"=>"",
"min_duration"=>"", "after"=>"",
"max_duration"=>"", "reviews"=>"",
"before"=>""},
"send_email"=>"true",
"options"=>{"offline_record_id"=>2}}>
where句のようなパラメータ["project_id"]をフェッチしようとしています
OfflineExport.where("parameters[project_id] = '3'")
しかし、次のようなエラーが発生しています:
ActiveRecord::StatementInvalid: PGError: ERROR: cannot subscript type text because it is not an array
誰でもこれを解決するのを手伝ってもらえますか?