添加primary_id

This commit is contained in:
sylor_huang@126.com 2020-04-16 23:47:16 +08:00
parent 6f9f584b65
commit ef5d4a37a3
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class AddLaborayPrimaryId < ActiveRecord::Migration[5.2]
def change
execute "ALTER TABLE laboratories ADD PRIMARY KEY (id);"
end
end