我正在升级到rails 5.1,但是由于索引名称太长,我的迁移失败了。index_mailboxer_notifications_on_notified_object_type_and_notified_object_id' on table 'mailboxer_notifications' is too long; the limit is 63 characters
索引名称会自动创建这在rails 5.1中有变化吗?有没有其他<em
我的Rails应用程序的数据库被划分为多个分片,每个分片的partition_key都是toyota_seller_account_id。现在我想使用这个迁移创建一个名为agg_product_summary_breakdowns的表: class CreateAggProductSummaryBreakdowns < ActiveRecordt.timestamps end
drop_table :agg_product_sum
我通过"rails generate model User name:string email:string ...“创建了一个用户表。迁移文件也已创建。,这是我第一次使用sqlite3成功完成的。用generate model重新创建了表..当我运行以下命令时:该过程结束时没有出现错误消息,并创建了如下所示的迁移文件,但没有设置任何索引。有没有人知道..搜索