修复:创建表索引错误修复

This commit is contained in:
yystopf 2024-07-19 14:55:59 +08:00
parent c9df8fa3fe
commit 8725e9ef8c
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
class CreateHomeTopSettings < ActiveRecord::Migration[5.2]
def change
create_table :home_top_settings do |t|
create_table :home_top_settings, options: 'ENGINE=InnoDB DEFAULT CHARSET=utf8' do |t|
t.references :user
t.references :top, polymorphic: true, index: true