소스 검색

add admin user depart records

abiao 4 년 전
부모
커밋
683cc8f8ed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      db/migrate/20210204114641_create_admin_departs.rb

+ 1 - 1
db/migrate/20210204114641_create_admin_departs.rb

@@ -12,7 +12,7 @@ class CreateAdminDeparts < ActiveRecord::Migration
       t.column :remark, :string,:limit => 256
       t.timestamps
     end
-    add_index :admin_departs, :room_id
+    add_index :admin_departs, :admin_user_id
   end
 
   def down