9 lines
209 B
Ruby
9 lines
209 B
Ruby
|
class RemoveAssetPathsFromMetacodes < ActiveRecord::Migration
|
||
|
def change
|
||
|
Metacode.all.each do |metacode|
|
||
|
metacode.icon = metacode.icon.gsub(/^\/assets\//, '')
|
||
|
metacode.save
|
||
|
end
|
||
|
end
|
||
|
end
|