Merge pull request #1618 from opf/hotfix/migration_quoting

db safe quoting in migration
pull/1604/head
cratz 10 years ago
commit 878a5c1d77
  1. 2
      db/migrate/migration_utils/customizable_utils.rb

@ -68,7 +68,7 @@ module Migration::Utils
journal_ids.each do |journal_id|
insert <<-SQL
INSERT INTO customizable_journals (journal_id, custom_field_id, value)
VALUES (#{journal_id}, #{m.custom_field_id}, '#{m.value}')
VALUES (#{journal_id}, #{m.custom_field_id}, #{quote_value(m.value)})
SQL
end
end

Loading…
Cancel
Save