修复:创建表索引错误修复
This commit is contained in:
parent
c9df8fa3fe
commit
8725e9ef8c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue