8 lines
209 B
Ruby
8 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
|