# Docker boostrap fails due to single quotes escaping in SQL INSERT commands

**URL:** <https://meta.discourse.org/t/docker-boostrap-fails-due-to-single-quotes-escaping-in-sql-insert-commands/27951>\
**Category:** Bug\
**Tags:** docker\
**Created:** [25 Abril , 2015 16:48 UTC](https://meta.discourse.org/t/docker-boostrap-fails-due-to-single-quotes-escaping-in-sql-insert-commands/27951 "2015-04-25T16:48:17Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![saper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saper/32/42182_2.png) [@saper](https://meta.discourse.org/u/saper)\
**Post date:** [16 Maio , 2015 19:37 UTC](https://meta.discourse.org/t/docker-boostrap-fails-due-to-single-quotes-escaping-in-sql-insert-commands/27951/6 "2015-05-16T19:37:48Z")

</div>

The fix was for `db/migrate/20140122043508_add_meta_category.rb` only, there are few more files with that problem. I think [20141014191645\_fix\_tos\_name.rb](https://github.com/discourse/discourse/blob/master/db/migrate/20141014191645_fix_tos_name.rb) does it properly:

```
class FixTosName < ActiveRecord::Migration
  def up
    execute ActiveRecord::Base.sql_fragment('UPDATE user_fields SET name = ? WHERE name = ?', I18n.t('terms_of_service.title'), I18n.t("terms_of_service.signup_form_message"))

  end
end

```

---

_[View the full topic](https://meta.discourse.org/t/docker-boostrap-fails-due-to-single-quotes-escaping-in-sql-insert-commands/27951)._
