message_all表中添加type索引
This commit is contained in:
parent
70d594659e
commit
44549e091d
|
@ -1,5 +1,5 @@
|
|||
class AddIndexToMessageAlls < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :message_alls, [:user_id, :message_id, :message_type, :created_at]
|
||||
add_index :message_alls, [:user_id, :message_id, :created_at]
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class AddIndexMtyeToMessageAlls < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :message_alls, [:message_type]
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue