amatsuda / database_rewinder

minimalist's tiny and ultra-fast database cleaner
MIT License
807 stars 91 forks source link

Allow space before insert statement #56

Closed kunitoo closed 7 years ago

kunitoo commented 7 years ago

This PR allow space before INSERT which can occur when using here doc.


query = <<-SQL
  INSERT INTO foos ("name")
  VALUES ("bar")
SQL

ActiveRecord::Base.connection.execute(query)
amatsuda commented 7 years ago

Thank you!

kunitoo commented 7 years ago

Thank you for merging 😄