parent
eb61f98246
commit
7b46227ec4
@ -0,0 +1,15 @@
|
|||||||
|
class ModifyRequestLimitForShixunServiceConfig < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
ShixunServiceConfig.find_each do |config|
|
||||||
|
# repertoire_id = 5 代表的是大数据的镜像
|
||||||
|
if config.mirror_repository.repertoire_id != 5
|
||||||
|
config.update_column(:request_limit, 10)
|
||||||
|
else
|
||||||
|
puts("####---#{config.mirror_repository.name}")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue