名前空間の指定が必要なのにできていない時に起きる。
has_manyへ
class_name: 'SuccessNameSpace::ModelName'
みたいに適切な名前空間を指定してやると良い。
NameError: uninitialized constant in active record compute_type · Issue #26561 · rails/rails
We have the following ActiveRecord models related as follows: Intranet model -> has_many -> Setting model (settings) User model -> has_many -> PayrollHour model (payroll_hours) The code used is: In...
GitHub