remove metacode asset path migration
This commit is contained in:
parent
5f1ef5f5c8
commit
92ddbbaf4f
1 changed files with 0 additions and 9 deletions
|
@ -1,9 +0,0 @@
|
||||||
class MetacodeAssetPathUpdate < ActiveRecord::Migration
|
|
||||||
def change
|
|
||||||
Metacode.all.each do |metacode|
|
|
||||||
if metacode.icon.start_with?("/assets/icons/")
|
|
||||||
metacode.update(icon: metacode.icon.gsub(/^\/assets\/icons/, "https://s3.amazonaws.com/metamaps-assets/metacodes"))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in a new issue