添加primary_id
This commit is contained in:
parent
6f9f584b65
commit
ef5d4a37a3
|
@ -0,0 +1,5 @@
|
|||
class AddLaborayPrimaryId < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
execute "ALTER TABLE laboratories ADD PRIMARY KEY (id);"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue