添加laboratory_setting_id_index
This commit is contained in:
parent
aa6482fd29
commit
b218ced077
|
@ -15,16 +15,7 @@ class Admins::SaveLaboratorySettingService < ApplicationService
|
|||
laboratory_setting.footer = strip params[:footer]
|
||||
|
||||
laboratory.save!
|
||||
|
||||
begin
|
||||
unless laboratory_setting.save!
|
||||
Rails.logger.info("######__ddddd________#######{laboratory_setting.errors.messages}")
|
||||
end
|
||||
rescue => e
|
||||
Rails.logger.info("######__________#######{e}")
|
||||
end
|
||||
|
||||
|
||||
laboratory_setting.save!
|
||||
|
||||
deal_image_file
|
||||
end
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class AddLaboratorySettingIdIndex < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
execute "ALTER TABLE laboratory_settings ADD PRIMARY KEY (id);"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue