db safe quoting in migration

pull/1618/head
Jens Ulferts 10 years ago
parent 7d7a689045
commit e8da662991
  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