添加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_setting.footer = strip params[:footer]
|
||||||
|
|
||||||
laboratory.save!
|
laboratory.save!
|
||||||
|
laboratory_setting.save!
|
||||||
begin
|
|
||||||
unless laboratory_setting.save!
|
|
||||||
Rails.logger.info("######__ddddd________#######{laboratory_setting.errors.messages}")
|
|
||||||
end
|
|
||||||
rescue => e
|
|
||||||
Rails.logger.info("######__________#######{e}")
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
deal_image_file
|
deal_image_file
|
||||||
end
|
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