2020-08-07 01:14:14 +02:00
|
|
|
class ChangeMarkedAsDeletedNames < ActiveRecord::Migration[4.2]
|
2020-07-30 22:05:19 +02:00
|
|
|
def up
|
|
|
|
execute "UPDATE groups SET name = REPLACE(name, '\\u2020', '\u2020') WHERE deleted_at IS NOT NULL"
|
|
|
|
execute "UPDATE suppliers SET name = REPLACE(name, '\\u2020', '\u2020') WHERE deleted_at IS NOT NULL"
|
|
|
|
end
|
|
|
|
end
|