用migrate生成表后,each循环时显示fetch_value
方法不存在,使用new
方法时,显示finder_needs_type_condition?
不存在;
后来才发现,字段名字用了class
,而class是关键字,所以才会找不到active record
用migrate生成表后,each循环时显示fetch_value
方法不存在,使用new
方法时,显示finder_needs_type_condition?
不存在;
后来才发现,字段名字用了class
,而class是关键字,所以才会找不到active record