diff --git a/lib/migration_comments/schema_formatter.rb b/lib/migration_comments/schema_formatter.rb
index <HASH>..<HASH> 100644
--- a/lib/migration_comments/schema_formatter.rb
+++ b/lib/migration_comments/schema_formatter.rb
@@ -13,7 +13,7 @@ module MigrationComments
     end
 
     def render_value(value)
-      value.is_a?(String) ? "\"#{value}\"" : value
+      value.is_a?(String) ? %Q[#{value}].inspect : value
     end
   end
 end
Comments in schema.rb should be escaped