ActiveRecord::StatementInvalid: Mysql2::Error: Distributed tables must either have a PRIMARY or SHARD::Error: Distributed tables must either have a PRIMARY or SHARD key.我做了以下工作:
最近,我在我的生产环境中遇到了一些奇怪的错误,我使用mysql2 gem版本0.3.20使用MySQL5.6运行了一个rails 3.2.22应用程序。An ActiveRecord::StatementInvalid occurred in invoice_batches#show:
和
An ActiveRecord::Stateme