我试着像这样生成一个rails模型:
rails generate model signal
产生了这个错误:
The name 'Signal' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again.
我很快发现“信号”是模型的保留名称:
Reserved names with ActiveRecord models
有没有解决方法,所以我可以有一个名为“Signal”的模型,就像在自定义Module
中包装模型一样?